Package nl.pim16aap2.lightkeeper.runtime
Record Class IdeRuntimeDiscovery
java.lang.Object
java.lang.Record
nl.pim16aap2.lightkeeper.runtime.IdeRuntimeDiscovery
- Record Components:
schemaVersion- Discovery document schema version.moduleDirectory- Canonical directory of the Maven module that owns the runtime.executionId- Mavenprepare-serverexecution that produced the runtime.serverType- Selected server platform.runtimeManifestPath- Absolute path to the durable runtime manifest.preparationFingerprint- Fingerprint of the effective preparation inputs.
public record IdeRuntimeDiscovery(int schemaVersion, String moduleDirectory, String executionId, String serverType, String runtimeManifestPath, String preparationFingerprint)
extends Record
Discovery metadata for a reusable IDE test runtime.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intCurrent discovery document schema version. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexecutionIdrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themoduleDirectoryrecord component.Returns the value of thepreparationFingerprintrecord component.Returns the value of theruntimeManifestPathrecord component.intReturns the value of theschemaVersionrecord component.Returns the value of theserverTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
SCHEMA_VERSION
public static final int SCHEMA_VERSIONCurrent discovery document schema version.- See Also:
-
-
Constructor Details
-
IdeRuntimeDiscovery
public IdeRuntimeDiscovery(int schemaVersion, String moduleDirectory, String executionId, String serverType, String runtimeManifestPath, String preparationFingerprint) Creates an instance of aIdeRuntimeDiscoveryrecord class.- Parameters:
schemaVersion- the value for theschemaVersionrecord componentmoduleDirectory- the value for themoduleDirectoryrecord componentexecutionId- the value for theexecutionIdrecord componentserverType- the value for theserverTyperecord componentruntimeManifestPath- the value for theruntimeManifestPathrecord componentpreparationFingerprint- the value for thepreparationFingerprintrecord 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 '=='. -
schemaVersion
public int schemaVersion()Returns the value of theschemaVersionrecord component.- Returns:
- the value of the
schemaVersionrecord component
-
moduleDirectory
Returns the value of themoduleDirectoryrecord component.- Returns:
- the value of the
moduleDirectoryrecord component
-
executionId
Returns the value of theexecutionIdrecord component.- Returns:
- the value of the
executionIdrecord component
-
serverType
Returns the value of theserverTyperecord component.- Returns:
- the value of the
serverTyperecord component
-
runtimeManifestPath
Returns the value of theruntimeManifestPathrecord component.- Returns:
- the value of the
runtimeManifestPathrecord component
-
preparationFingerprint
Returns the value of thepreparationFingerprintrecord component.- Returns:
- the value of the
preparationFingerprintrecord component
-