Package nl.pim16aap2.lightkeeper.runtime
Record Class IdeRuntimeProvenance
java.lang.Object
java.lang.Record
nl.pim16aap2.lightkeeper.runtime.IdeRuntimeProvenance
- Record Components:
schemaVersion- Provenance document schema version.moduleDirectory- Canonical owning module directory.executionId- Maven execution that prepared the runtime.serverType- Selected server platform.preparationFingerprint- Effective preparation input fingerprint.runtimeProtocolVersion- Runtime protocol version.requiredArtifacts- Immutable durable artifacts required at launch.sourceInputs- Local inputs examined during setup.
public record IdeRuntimeProvenance(int schemaVersion, String moduleDirectory, String executionId, String serverType, String preparationFingerprint, int runtimeProtocolVersion, List<IdeRuntimeProvenance.Artifact> requiredArtifacts, List<IdeRuntimeProvenance.Artifact> sourceInputs)
extends Record
Integrity and input provenance recorded beside a durable IDE runtime manifest.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordA path and its canonical content hash. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intCurrent provenance document schema version. -
Constructor Summary
ConstructorsConstructorDescriptionIdeRuntimeProvenance(int schemaVersion, String moduleDirectory, String executionId, String serverType, String preparationFingerprint, int runtimeProtocolVersion, List<IdeRuntimeProvenance.Artifact> requiredArtifacts, List<IdeRuntimeProvenance.Artifact> sourceInputs) Creates an instance of aIdeRuntimeProvenancerecord class. -
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 therequiredArtifactsrecord component.intReturns the value of theruntimeProtocolVersionrecord component.intReturns the value of theschemaVersionrecord component.Returns the value of theserverTyperecord component.Returns the value of thesourceInputsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
SCHEMA_VERSION
public static final int SCHEMA_VERSIONCurrent provenance document schema version.- See Also:
-
-
Constructor Details
-
IdeRuntimeProvenance
public IdeRuntimeProvenance(int schemaVersion, String moduleDirectory, String executionId, String serverType, String preparationFingerprint, int runtimeProtocolVersion, List<IdeRuntimeProvenance.Artifact> requiredArtifacts, List<IdeRuntimeProvenance.Artifact> sourceInputs) Creates an instance of aIdeRuntimeProvenancerecord class.- Parameters:
schemaVersion- the value for theschemaVersionrecord componentmoduleDirectory- the value for themoduleDirectoryrecord componentexecutionId- the value for theexecutionIdrecord componentserverType- the value for theserverTyperecord componentpreparationFingerprint- the value for thepreparationFingerprintrecord componentruntimeProtocolVersion- the value for theruntimeProtocolVersionrecord componentrequiredArtifacts- the value for therequiredArtifactsrecord componentsourceInputs- the value for thesourceInputsrecord 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
-
preparationFingerprint
Returns the value of thepreparationFingerprintrecord component.- Returns:
- the value of the
preparationFingerprintrecord component
-
runtimeProtocolVersion
public int runtimeProtocolVersion()Returns the value of theruntimeProtocolVersionrecord component.- Returns:
- the value of the
runtimeProtocolVersionrecord component
-
requiredArtifacts
Returns the value of therequiredArtifactsrecord component.- Returns:
- the value of the
requiredArtifactsrecord component
-
sourceInputs
Returns the value of thesourceInputsrecord component.- Returns:
- the value of the
sourceInputsrecord component
-