Record Class NuggetIdentity
java.lang.Object
java.lang.Record
org.j7m.middleware.operations.api.NuggetIdentity
- Record Components:
nuggetId- immutable process-lifetime nugget idnuggetName- human-readable non-unique nugget nameruntimeIdentity- hosted runtime identitystartedAt- nugget process start timestampprocessId- safe process id when available, otherwise empty stringhostSummary- safe host summary when available, otherwise empty stringj7mVersion- J7M implementation version when availablejvmVersion- JVM version summarystate- nugget lifecycle statecapabilities- safe capability versions keyed by capability namemetadata- redacted safe metadata
public record NuggetIdentity(String nuggetId, String nuggetName, RuntimeIdentity runtimeIdentity, Instant startedAt, String processId, String hostSummary, String j7mVersion, String jvmVersion, NuggetState state, Map<String,String> capabilities, Map<String,String> metadata)
extends Record
Immutable process-level identity of one J7M nugget.
A nugget id is distinct from RuntimeIdentity.runtimeId(). The
nugget id is stable for one nugget process lifetime and must not be treated
as proof of continuity across restart unless a future explicit persistence
policy says so. The human-readable name is not globally unique.
-
Constructor Summary
ConstructorsConstructorDescriptionNuggetIdentity(String nuggetId, String nuggetName, RuntimeIdentity runtimeIdentity, Instant startedAt, String processId, String hostSummary, String j7mVersion, String jvmVersion, NuggetState state, Map<String, String> capabilities, Map<String, String> metadata) Creates a defensive immutable identity. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecapabilitiesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thehostSummaryrecord component.Returns the value of thej7mVersionrecord component.Returns the value of thejvmVersionrecord component.metadata()Returns the value of themetadatarecord component.nuggetId()Returns the value of thenuggetIdrecord component.Returns the value of thenuggetNamerecord component.Returns the value of theprocessIdrecord component.Returns the value of theruntimeIdentityrecord component.Returns the value of thestartedAtrecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NuggetIdentity
public NuggetIdentity(String nuggetId, String nuggetName, RuntimeIdentity runtimeIdentity, Instant startedAt, String processId, String hostSummary, String j7mVersion, String jvmVersion, NuggetState state, Map<String, String> capabilities, Map<String, String> metadata) Creates a defensive immutable identity.
-
-
Method Details
-
toString
-
hashCode
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
nuggetId
-
nuggetName
Returns the value of thenuggetNamerecord component.- Returns:
- the value of the
nuggetNamerecord component
-
runtimeIdentity
Returns the value of theruntimeIdentityrecord component.- Returns:
- the value of the
runtimeIdentityrecord component
-
startedAt
-
processId
-
hostSummary
Returns the value of thehostSummaryrecord component.- Returns:
- the value of the
hostSummaryrecord component
-
j7mVersion
Returns the value of thej7mVersionrecord component.- Returns:
- the value of the
j7mVersionrecord component
-
jvmVersion
Returns the value of thejvmVersionrecord component.- Returns:
- the value of the
jvmVersionrecord component
-
state
-
capabilities
Returns the value of thecapabilitiesrecord component.- Returns:
- the value of the
capabilitiesrecord component
-
metadata
-