Package nl.pim16aap2.lightkeeper.runtime
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 matchRuntimeProtocol.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 byprepare-server, including templates that are not loaded on startup. The framework preloads theloadOnStartupentries 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.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordMetadata of a world provisioned into the server directory. -
Constructor Summary
ConstructorsConstructorDescriptionRuntimeManifest(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 aRuntimeManifestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theagentAuthTokenrecord component.Returns the value of theagentCacheIdentityrecord component.@Nullable StringagentJar()Returns the value of theagentJarrecord component.@Nullable StringReturns the value of theagentJarSha256record component.cacheKey()Returns the value of thecacheKeyrecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable StringReturns the value of theextraJvmArgsrecord component.final inthashCode()Returns a hash code value for this object.intmemoryMb()Returns the value of thememoryMbrecord component.longReturns the value of thepaperBuildIdrecord component.Returns the value of theprovisionedWorldsrecord component.intReturns the value of theruntimeProtocolVersionrecord component.Returns the value of theserverDirectoryrecord component.Returns the value of theserverJarrecord component.Returns the value of theserverTyperecord component.Returns the value of theserverVersionrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theudsSocketPathrecord component.
-
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 aRuntimeManifestrecord class.- Parameters:
serverType- the value for theserverTyperecord componentserverVersion- the value for theserverVersionrecord componentpaperBuildId- the value for thepaperBuildIdrecord componentcacheKey- the value for thecacheKeyrecord componentserverDirectory- the value for theserverDirectoryrecord componentserverJar- the value for theserverJarrecord componentmemoryMb- the value for thememoryMbrecord componentudsSocketPath- the value for theudsSocketPathrecord componentagentAuthToken- the value for theagentAuthTokenrecord componentagentJar- the value for theagentJarrecord componentagentJarSha256- the value for theagentJarSha256record componentruntimeProtocolVersion- the value for theruntimeProtocolVersionrecord componentagentCacheIdentity- the value for theagentCacheIdentityrecord componentextraJvmArgs- the value for theextraJvmArgsrecord componentprovisionedWorlds- the value for theprovisionedWorldsrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
serverType
Returns the value of theserverTyperecord component.- Returns:
- the value of the
serverTyperecord component
-
serverVersion
Returns the value of theserverVersionrecord component.- Returns:
- the value of the
serverVersionrecord component
-
paperBuildId
public long paperBuildId()Returns the value of thepaperBuildIdrecord component.- Returns:
- the value of the
paperBuildIdrecord component
-
cacheKey
Returns the value of thecacheKeyrecord component.- Returns:
- the value of the
cacheKeyrecord component
-
serverDirectory
Returns the value of theserverDirectoryrecord component.- Returns:
- the value of the
serverDirectoryrecord component
-
serverJar
Returns the value of theserverJarrecord component.- Returns:
- the value of the
serverJarrecord component
-
memoryMb
public int memoryMb()Returns the value of thememoryMbrecord component.- Returns:
- the value of the
memoryMbrecord component
-
udsSocketPath
Returns the value of theudsSocketPathrecord component.- Returns:
- the value of the
udsSocketPathrecord component
-
agentAuthToken
Returns the value of theagentAuthTokenrecord component.- Returns:
- the value of the
agentAuthTokenrecord component
-
agentJar
Returns the value of theagentJarrecord component.- Returns:
- the value of the
agentJarrecord component
-
agentJarSha256
Returns the value of theagentJarSha256record component.- Returns:
- the value of the
agentJarSha256record component
-
runtimeProtocolVersion
public int runtimeProtocolVersion()Returns the value of theruntimeProtocolVersionrecord component.- Returns:
- the value of the
runtimeProtocolVersionrecord component
-
agentCacheIdentity
Returns the value of theagentCacheIdentityrecord component.- Returns:
- the value of the
agentCacheIdentityrecord component
-
extraJvmArgs
Returns the value of theextraJvmArgsrecord component.- Returns:
- the value of the
extraJvmArgsrecord component
-
provisionedWorlds
Returns the value of theprovisionedWorldsrecord component.- Returns:
- the value of the
provisionedWorldsrecord component
-