Record Class RuntimeStatus
java.lang.Object
java.lang.Record
org.j7m.middleware.api.RuntimeStatus
- Record Components:
identity- runtime identityinstances- local exported instancesregistryRecords- visible registry record referencestransports- transport endpoint statusesregistry- registry summaryinvocationCount- total invocation countinvocationFailureCount- total failed invocation countrecentInvocations- recent invocation logsecurity- 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 Summary
ConstructorsConstructorDescriptionRuntimeStatus(RuntimeIdentity identity, List<InstanceStatus> instances, List<ObjectRef> registryRecords, List<TransportStatus> transports, RegistryStatus registry, long invocationCount, long invocationFailureCount, List<InvocationMetadata> recentInvocations) Creates a compatibility status without security metadata.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) Creates immutable status snapshots. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.identity()Returns the value of theidentityrecord component.Returns the value of theinstancesrecord component.longReturns the value of theinvocationCountrecord component.longReturns the value of theinvocationFailureCountrecord component.Returns the value of therecentInvocationsrecord component.registry()Returns the value of theregistryrecord component.Returns the value of theregistryRecordsrecord component.security()Returns the value of thesecurityrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransportsrecord component.
-
Constructor Details
-
RuntimeStatus
public 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) Creates immutable status snapshots. -
RuntimeStatus
public RuntimeStatus(RuntimeIdentity identity, List<InstanceStatus> instances, List<ObjectRef> registryRecords, List<TransportStatus> transports, RegistryStatus registry, long invocationCount, long invocationFailureCount, List<InvocationMetadata> recentInvocations) Creates a compatibility status without security metadata.- Parameters:
identity- runtime identityinstances- instancesregistryRecords- registry recordstransports- transportsregistry- registry statusinvocationCount- invocation countinvocationFailureCount- failure countrecentInvocations- recent invocations
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
identity
-
instances
-
registryRecords
Returns the value of theregistryRecordsrecord component.- Returns:
- the value of the
registryRecordsrecord component
-
transports
Returns the value of thetransportsrecord component.- Returns:
- the value of the
transportsrecord component
-
registry
-
invocationCount
public long invocationCount()Returns the value of theinvocationCountrecord component.- Returns:
- the value of the
invocationCountrecord component
-
invocationFailureCount
public long invocationFailureCount()Returns the value of theinvocationFailureCountrecord component.- Returns:
- the value of the
invocationFailureCountrecord component
-
recentInvocations
Returns the value of therecentInvocationsrecord component.- Returns:
- the value of the
recentInvocationsrecord component
-
security
-