Record Class NuggetIntrospection.RuntimeSummary

java.lang.Object
java.lang.Record
org.j7m.middleware.operations.api.NuggetIntrospection.RuntimeSummary
Record Components:
runtimeId - runtime id
nuggetId - nugget id
lifecycleState - lifecycle state
startTime - start time
uptime - uptime
activeObjectCount - active object count
exportedObjectCount - exported object count
hostedApplicationCount - hosted application count
invocationCount - invocation count
invocationFailureCount - invocation failure count
recentFailureCount - recent failure count
security - safe security metadata
collectedAt - collection timestamp
Enclosing class:
NuggetIntrospection

public static record NuggetIntrospection.RuntimeSummary(String runtimeId, String nuggetId, NuggetState lifecycleState, Instant startTime, Duration uptime, int activeObjectCount, int exportedObjectCount, int hostedApplicationCount, long invocationCount, long invocationFailureCount, int recentFailureCount, Map<String,String> security, Instant collectedAt) extends Record
Runtime status projection.
  • Constructor Details

    • RuntimeSummary

      public RuntimeSummary(String runtimeId, String nuggetId, NuggetState lifecycleState, Instant startTime, Duration uptime, int activeObjectCount, int exportedObjectCount, int hostedApplicationCount, long invocationCount, long invocationFailureCount, int recentFailureCount, Map<String,String> security, Instant collectedAt)
      Creates immutable runtime metadata.
  • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      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.
    • runtimeId

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

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

      public NuggetState lifecycleState()
      Returns the value of the lifecycleState record component.
      Returns:
      the value of the lifecycleState record component
    • startTime

      public Instant startTime()
      Returns the value of the startTime record component.
      Returns:
      the value of the startTime record component
    • uptime

      public Duration uptime()
      Returns the value of the uptime record component.
      Returns:
      the value of the uptime record component
    • activeObjectCount

      public int activeObjectCount()
      Returns the value of the activeObjectCount record component.
      Returns:
      the value of the activeObjectCount record component
    • exportedObjectCount

      public int exportedObjectCount()
      Returns the value of the exportedObjectCount record component.
      Returns:
      the value of the exportedObjectCount record component
    • hostedApplicationCount

      public int hostedApplicationCount()
      Returns the value of the hostedApplicationCount record component.
      Returns:
      the value of the hostedApplicationCount record component
    • invocationCount

      public long invocationCount()
      Returns the value of the invocationCount record component.
      Returns:
      the value of the invocationCount record component
    • invocationFailureCount

      public long invocationFailureCount()
      Returns the value of the invocationFailureCount record component.
      Returns:
      the value of the invocationFailureCount record component
    • recentFailureCount

      public int recentFailureCount()
      Returns the value of the recentFailureCount record component.
      Returns:
      the value of the recentFailureCount record component
    • security

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

      public Instant collectedAt()
      Returns the value of the collectedAt record component.
      Returns:
      the value of the collectedAt record component