Record Class RuntimeManifest

java.lang.Object
java.lang.Record
nl.pim16aap2.lightkeeper.runtime.RuntimeManifest
Record Components:
serverType - The server type.
serverVersion - The resolved server version.
paperBuildId - The resolved Paper build id.
cacheKey - The resolved cache key.
serverDirectory - The prepared target server directory.
serverJar - The path to the prepared server jar.
memoryMb - The memory (in MB) allocated to the server runtime.
udsSocketPath - The UDS socket path for agent IPC.
agentAuthToken - The short-lived agent auth token.
agentJar - Optional path to the deployed agent jar.
agentJarSha256 - Optional SHA-256 hash for the agent jar.
runtimeProtocolVersion - The runtime protocol version. Must exactly match RuntimeProtocol.VERSION.
agentCacheIdentity - The cache identity for the resolved agent artifact.
extraJvmArgs - Optional extra JVM arguments that must be applied when launching the test server runtime.
provisionedWorlds - All worlds provisioned into the server directory by prepare-server, including templates that are not loaded on startup. The framework preloads the loadOnStartup entries before test execution and validates template names against the full list.

public record RuntimeManifest(String serverType, String serverVersion, long paperBuildId, String cacheKey, String serverDirectory, String serverJar, int memoryMb, String udsSocketPath, String agentAuthToken, @Nullable String agentJar, @Nullable String agentJarSha256, int runtimeProtocolVersion, String agentCacheIdentity, @Nullable String extraJvmArgs, List<RuntimeManifest.ProvisionedWorld> provisionedWorlds) extends Record
Runtime manifest written by prepare-server.
  • Constructor Details

    • RuntimeManifest

      public RuntimeManifest(String serverType, String serverVersion, long paperBuildId, String cacheKey, String serverDirectory, String serverJar, int memoryMb, String udsSocketPath, String agentAuthToken, @Nullable String agentJar, @Nullable String agentJarSha256, int runtimeProtocolVersion, String agentCacheIdentity, @Nullable String extraJvmArgs, List<RuntimeManifest.ProvisionedWorld> provisionedWorlds)
      Creates an instance of a RuntimeManifest record class.
      Parameters:
      serverType - the value for the serverType record component
      serverVersion - the value for the serverVersion record component
      paperBuildId - the value for the paperBuildId record component
      cacheKey - the value for the cacheKey record component
      serverDirectory - the value for the serverDirectory record component
      serverJar - the value for the serverJar record component
      memoryMb - the value for the memoryMb record component
      udsSocketPath - the value for the udsSocketPath record component
      agentAuthToken - the value for the agentAuthToken record component
      agentJar - the value for the agentJar record component
      agentJarSha256 - the value for the agentJarSha256 record component
      runtimeProtocolVersion - the value for the runtimeProtocolVersion record component
      agentCacheIdentity - the value for the agentCacheIdentity record component
      extraJvmArgs - the value for the extraJvmArgs record component
      provisionedWorlds - the value for the provisionedWorlds record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • serverType

      public String serverType()
      Returns the value of the serverType record component.
      Returns:
      the value of the serverType record component
    • serverVersion

      public String serverVersion()
      Returns the value of the serverVersion record component.
      Returns:
      the value of the serverVersion record component
    • paperBuildId

      public long paperBuildId()
      Returns the value of the paperBuildId record component.
      Returns:
      the value of the paperBuildId record component
    • cacheKey

      public String cacheKey()
      Returns the value of the cacheKey record component.
      Returns:
      the value of the cacheKey record component
    • serverDirectory

      public String serverDirectory()
      Returns the value of the serverDirectory record component.
      Returns:
      the value of the serverDirectory record component
    • serverJar

      public String serverJar()
      Returns the value of the serverJar record component.
      Returns:
      the value of the serverJar record component
    • memoryMb

      public int memoryMb()
      Returns the value of the memoryMb record component.
      Returns:
      the value of the memoryMb record component
    • udsSocketPath

      public String udsSocketPath()
      Returns the value of the udsSocketPath record component.
      Returns:
      the value of the udsSocketPath record component
    • agentAuthToken

      public String agentAuthToken()
      Returns the value of the agentAuthToken record component.
      Returns:
      the value of the agentAuthToken record component
    • agentJar

      public @Nullable String agentJar()
      Returns the value of the agentJar record component.
      Returns:
      the value of the agentJar record component
    • agentJarSha256

      public @Nullable String agentJarSha256()
      Returns the value of the agentJarSha256 record component.
      Returns:
      the value of the agentJarSha256 record component
    • runtimeProtocolVersion

      public int runtimeProtocolVersion()
      Returns the value of the runtimeProtocolVersion record component.
      Returns:
      the value of the runtimeProtocolVersion record component
    • agentCacheIdentity

      public String agentCacheIdentity()
      Returns the value of the agentCacheIdentity record component.
      Returns:
      the value of the agentCacheIdentity record component
    • extraJvmArgs

      public @Nullable String extraJvmArgs()
      Returns the value of the extraJvmArgs record component.
      Returns:
      the value of the extraJvmArgs record component
    • provisionedWorlds

      public List<RuntimeManifest.ProvisionedWorld> provisionedWorlds()
      Returns the value of the provisionedWorlds record component.
      Returns:
      the value of the provisionedWorlds record component