Record Class WorkloadMetricsSnapshot
java.lang.Object
java.lang.Record
org.j7m.middleware.scheduler.WorkloadMetricsSnapshot
- Record Components:
submitted- submitted task countrunning- running task countcompleted- completed task countfailed- failed task countcancelled- cancelled task countfencingRejected- stale fencing rejection countoverloadedRejected- overload rejection countresourceDenied- resource-policy denial countasyncStarted- async task countoneWayStarted- one-way task countstreamsStarted- stream countstreamCancelled- stream cancellation countfanOutCalls- fan-out call countscatterGatherCalls- scatter-gather call countmetadata- safe metadata
public record WorkloadMetricsSnapshot(long submitted, long running, long completed, long failed, long cancelled, long fencingRejected, long overloadedRejected, long resourceDenied, long asyncStarted, long oneWayStarted, long streamsStarted, long streamCancelled, long fanOutCalls, long scatterGatherCalls, Map<String,String> metadata)
extends Record
Immutable workload scheduler metrics snapshot.
-
Constructor Summary
ConstructorsConstructorDescriptionWorkloadMetricsSnapshot(long submitted, long running, long completed, long failed, long cancelled, long fencingRejected, long overloadedRejected, long resourceDenied, long asyncStarted, long oneWayStarted, long streamsStarted, long streamCancelled, long fanOutCalls, long scatterGatherCalls, Map<String, String> metadata) Creates immutable metadata. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theasyncStartedrecord component.longReturns the value of thecancelledrecord component.longReturns the value of thecompletedrecord component.final booleanIndicates whether some other object is "equal to" this one.longfailed()Returns the value of thefailedrecord component.longReturns the value of thefanOutCallsrecord component.longReturns the value of thefencingRejectedrecord component.final inthashCode()Returns a hash code value for this object.metadata()Returns the value of themetadatarecord component.longReturns the value of theoneWayStartedrecord component.longReturns the value of theoverloadedRejectedrecord component.longReturns the value of theresourceDeniedrecord component.longrunning()Returns the value of therunningrecord component.longReturns the value of thescatterGatherCallsrecord component.longReturns the value of thestreamCancelledrecord component.longReturns the value of thestreamsStartedrecord component.longReturns the value of thesubmittedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
WorkloadMetricsSnapshot
public WorkloadMetricsSnapshot(long submitted, long running, long completed, long failed, long cancelled, long fencingRejected, long overloadedRejected, long resourceDenied, long asyncStarted, long oneWayStarted, long streamsStarted, long streamCancelled, long fanOutCalls, long scatterGatherCalls, Map<String, String> metadata) Creates immutable 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. -
submitted
-
running
-
completed
-
failed
-
cancelled
-
fencingRejected
public long fencingRejected()Returns the value of thefencingRejectedrecord component.- Returns:
- the value of the
fencingRejectedrecord component
-
overloadedRejected
public long overloadedRejected()Returns the value of theoverloadedRejectedrecord component.- Returns:
- the value of the
overloadedRejectedrecord component
-
resourceDenied
public long resourceDenied()Returns the value of theresourceDeniedrecord component.- Returns:
- the value of the
resourceDeniedrecord component
-
asyncStarted
public long asyncStarted()Returns the value of theasyncStartedrecord component.- Returns:
- the value of the
asyncStartedrecord component
-
oneWayStarted
public long oneWayStarted()Returns the value of theoneWayStartedrecord component.- Returns:
- the value of the
oneWayStartedrecord component
-
streamsStarted
public long streamsStarted()Returns the value of thestreamsStartedrecord component.- Returns:
- the value of the
streamsStartedrecord component
-
streamCancelled
public long streamCancelled()Returns the value of thestreamCancelledrecord component.- Returns:
- the value of the
streamCancelledrecord component
-
fanOutCalls
public long fanOutCalls()Returns the value of thefanOutCallsrecord component.- Returns:
- the value of the
fanOutCallsrecord component
-
scatterGatherCalls
public long scatterGatherCalls()Returns the value of thescatterGatherCallsrecord component.- Returns:
- the value of the
scatterGatherCallsrecord component
-
metadata
-