Package nl.pim16aap2.lightkeeper.runtime
Class RuntimeProtocol
java.lang.Object
nl.pim16aap2.lightkeeper.runtime.RuntimeProtocol
Shared runtime protocol constants for LightKeeper.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longSafety margin, in milliseconds, added to the agent-side operation timeout to derive the client's response timeout.static final longDefault maximum time, in seconds, the agent waits for a scheduled synchronous server operation before reportingTIMEOUT.static final StringSystem property containing the runtime authentication token expected by the agent.static final StringSystem property containing the expected SHA-256 hash of the embedded agent JAR.static final StringSystem property containing the runtime protocol version expected by the agent.static final StringSystem property containing the Unix domain socket path used by the agent.static final StringSystem property containing the synchronous operation timeout in seconds.static final StringMinecraft server version supported by this LightKeeper build.static final intRuntime protocol version understood by the framework and in-server agent. -
Method Summary
-
Field Details
-
VERSION
public static final int VERSIONRuntime protocol version understood by the framework and in-server agent.Increment this whenever the agent wire format, command set, or response semantics change in a backward-incompatible way. Both the framework and the agent must agree on this value; a mismatch causes an
HANDSHAKEfailure.- See Also:
-
SUPPORTED_MINECRAFT_VERSION
Minecraft server version supported by this LightKeeper build. -
DEFAULT_SYNC_OPERATION_TIMEOUT_SECONDS
public static final long DEFAULT_SYNC_OPERATION_TIMEOUT_SECONDSDefault maximum time, in seconds, the agent waits for a scheduled synchronous server operation before reportingTIMEOUT. Shared so the client can derive a strictly larger response timeout.- See Also:
-
CLIENT_RESPONSE_TIMEOUT_MARGIN_MILLIS
public static final long CLIENT_RESPONSE_TIMEOUT_MARGIN_MILLISSafety margin, in milliseconds, added to the agent-side operation timeout to derive the client's response timeout. Guarantees the agent reports its own detailedTIMEOUTbefore the client watchdog gives up.- See Also:
-
PROPERTY_SOCKET_PATH
System property containing the Unix domain socket path used by the agent.- See Also:
-
PROPERTY_AUTH_TOKEN
System property containing the runtime authentication token expected by the agent.- See Also:
-
PROPERTY_PROTOCOL_VERSION
System property containing the runtime protocol version expected by the agent.- See Also:
-
PROPERTY_EXPECTED_AGENT_SHA256
System property containing the expected SHA-256 hash of the embedded agent JAR.- See Also:
-
PROPERTY_SYNC_OPERATION_TIMEOUT_SECONDS
System property containing the synchronous operation timeout in seconds.- See Also:
-