Record Class NuggetIntrospection.RuntimeSummary
java.lang.Object
java.lang.Record
org.j7m.middleware.operations.api.NuggetIntrospection.RuntimeSummary
- Record Components:
runtimeId- runtime idnuggetId- nugget idlifecycleState- lifecycle statestartTime- start timeuptime- uptimeactiveObjectCount- active object countexportedObjectCount- exported object counthostedApplicationCount- hosted application countinvocationCount- invocation countinvocationFailureCount- invocation failure countrecentFailureCount- recent failure countsecurity- safe security metadatacollectedAt- 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 Summary
ConstructorsConstructorDescriptionRuntimeSummary(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 Summary
Modifier and TypeMethodDescriptionintReturns the value of theactiveObjectCountrecord component.Returns the value of thecollectedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of theexportedObjectCountrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of thehostedApplicationCountrecord component.longReturns the value of theinvocationCountrecord component.longReturns the value of theinvocationFailureCountrecord component.Returns the value of thelifecycleStaterecord component.nuggetId()Returns the value of thenuggetIdrecord component.intReturns the value of therecentFailureCountrecord component.Returns the value of theruntimeIdrecord component.security()Returns the value of thesecurityrecord component.Returns the value of thestartTimerecord component.final StringtoString()Returns a string representation of this record class.uptime()Returns the value of theuptimerecord component.
-
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
-
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. -
runtimeId
-
nuggetId
-
lifecycleState
Returns the value of thelifecycleStaterecord component.- Returns:
- the value of the
lifecycleStaterecord component
-
startTime
-
uptime
-
activeObjectCount
public int activeObjectCount()Returns the value of theactiveObjectCountrecord component.- Returns:
- the value of the
activeObjectCountrecord component
-
exportedObjectCount
public int exportedObjectCount()Returns the value of theexportedObjectCountrecord component.- Returns:
- the value of the
exportedObjectCountrecord component
-
hostedApplicationCount
public int hostedApplicationCount()Returns the value of thehostedApplicationCountrecord component.- Returns:
- the value of the
hostedApplicationCountrecord component
-
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
-
recentFailureCount
public int recentFailureCount()Returns the value of therecentFailureCountrecord component.- Returns:
- the value of the
recentFailureCountrecord component
-
security
-
collectedAt
Returns the value of thecollectedAtrecord component.- Returns:
- the value of the
collectedAtrecord component
-