Record Class NuggetIdentity

java.lang.Object
java.lang.Record
org.j7m.middleware.operations.api.NuggetIdentity
Record Components:
nuggetId - immutable process-lifetime nugget id
nuggetName - human-readable non-unique nugget name
runtimeIdentity - hosted runtime identity
startedAt - nugget process start timestamp
processId - safe process id when available, otherwise empty string
hostSummary - safe host summary when available, otherwise empty string
j7mVersion - J7M implementation version when available
jvmVersion - JVM version summary
state - nugget lifecycle state
capabilities - safe capability versions keyed by capability name
metadata - 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 Details

  • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • nuggetId

      public String nuggetId()
      Returns the value of the nuggetId record component.
      Returns:
      the value of the nuggetId record component
    • nuggetName

      public String nuggetName()
      Returns the value of the nuggetName record component.
      Returns:
      the value of the nuggetName record component
    • runtimeIdentity

      public RuntimeIdentity runtimeIdentity()
      Returns the value of the runtimeIdentity record component.
      Returns:
      the value of the runtimeIdentity record component
    • startedAt

      public Instant startedAt()
      Returns the value of the startedAt record component.
      Returns:
      the value of the startedAt record component
    • processId

      public String processId()
      Returns the value of the processId record component.
      Returns:
      the value of the processId record component
    • hostSummary

      public String hostSummary()
      Returns the value of the hostSummary record component.
      Returns:
      the value of the hostSummary record component
    • j7mVersion

      public String j7mVersion()
      Returns the value of the j7mVersion record component.
      Returns:
      the value of the j7mVersion record component
    • jvmVersion

      public String jvmVersion()
      Returns the value of the jvmVersion record component.
      Returns:
      the value of the jvmVersion record component
    • state

      public NuggetState state()
      Returns the value of the state record component.
      Returns:
      the value of the state record component
    • capabilities

      public Map<String,String> capabilities()
      Returns the value of the capabilities record component.
      Returns:
      the value of the capabilities record component
    • metadata

      public Map<String,String> metadata()
      Returns the value of the metadata record component.
      Returns:
      the value of the metadata record component