Class RuntimeProtocol

java.lang.Object
nl.pim16aap2.lightkeeper.runtime.RuntimeProtocol

public final class RuntimeProtocol extends Object
Shared runtime protocol constants for LightKeeper.
  • Field Details

    • VERSION

      public static final int VERSION
      Runtime 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 HANDSHAKE failure.

      See Also:
    • SUPPORTED_MINECRAFT_VERSION

      public static final String SUPPORTED_MINECRAFT_VERSION
      Minecraft server version supported by this LightKeeper build.
    • DEFAULT_SYNC_OPERATION_TIMEOUT_SECONDS

      public static final long DEFAULT_SYNC_OPERATION_TIMEOUT_SECONDS
      Default maximum time, in seconds, the agent waits for a scheduled synchronous server operation before reporting TIMEOUT. 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_MILLIS
      Safety margin, in milliseconds, added to the agent-side operation timeout to derive the client's response timeout. Guarantees the agent reports its own detailed TIMEOUT before the client watchdog gives up.
      See Also:
    • PROPERTY_SOCKET_PATH

      public static final String PROPERTY_SOCKET_PATH
      System property containing the Unix domain socket path used by the agent.
      See Also:
    • PROPERTY_AUTH_TOKEN

      public static final String PROPERTY_AUTH_TOKEN
      System property containing the runtime authentication token expected by the agent.
      See Also:
    • PROPERTY_PROTOCOL_VERSION

      public static final String PROPERTY_PROTOCOL_VERSION
      System property containing the runtime protocol version expected by the agent.
      See Also:
    • PROPERTY_EXPECTED_AGENT_SHA256

      public static final String PROPERTY_EXPECTED_AGENT_SHA256
      System property containing the expected SHA-256 hash of the embedded agent JAR.
      See Also:
    • PROPERTY_SYNC_OPERATION_TIMEOUT_SECONDS

      public static final String PROPERTY_SYNC_OPERATION_TIMEOUT_SECONDS
      System property containing the synchronous operation timeout in seconds.
      See Also: