Record Class RuntimeStatus

java.lang.Object
java.lang.Record
org.j7m.middleware.api.RuntimeStatus
Record Components:
identity - runtime identity
instances - local exported instances
registryRecords - visible registry record references
transports - transport endpoint statuses
registry - registry summary
invocationCount - total invocation count
invocationFailureCount - total failed invocation count
recentInvocations - recent invocation log
security - security and audit summary metadata

public record RuntimeStatus(RuntimeIdentity identity, List<InstanceStatus> instances, List<ObjectRef> registryRecords, List<TransportStatus> transports, RegistryStatus registry, long invocationCount, long invocationFailureCount, List<InvocationMetadata> recentInvocations, Map<String,String> security) extends Record
Immutable read-only status snapshot of a middleware runtime.
  • 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. 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.
    • identity

      public RuntimeIdentity identity()
      Returns the value of the identity record component.
      Returns:
      the value of the identity record component
    • instances

      public List<InstanceStatus> instances()
      Returns the value of the instances record component.
      Returns:
      the value of the instances record component
    • registryRecords

      public List<ObjectRef> registryRecords()
      Returns the value of the registryRecords record component.
      Returns:
      the value of the registryRecords record component
    • transports

      public List<TransportStatus> transports()
      Returns the value of the transports record component.
      Returns:
      the value of the transports record component
    • registry

      public RegistryStatus registry()
      Returns the value of the registry record component.
      Returns:
      the value of the registry 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
    • recentInvocations

      public List<InvocationMetadata> recentInvocations()
      Returns the value of the recentInvocations record component.
      Returns:
      the value of the recentInvocations record component
    • security

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