Record Class WorkloadMetricsSnapshot

java.lang.Object
java.lang.Record
org.j7m.middleware.scheduler.WorkloadMetricsSnapshot
Record Components:
submitted - submitted task count
running - running task count
completed - completed task count
failed - failed task count
cancelled - cancelled task count
fencingRejected - stale fencing rejection count
overloadedRejected - overload rejection count
resourceDenied - resource-policy denial count
asyncStarted - async task count
oneWayStarted - one-way task count
streamsStarted - stream count
streamCancelled - stream cancellation count
fanOutCalls - fan-out call count
scatterGatherCalls - scatter-gather call count
metadata - 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 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

      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.
    • submitted

      public long submitted()
      Returns the value of the submitted record component.
      Returns:
      the value of the submitted record component
    • running

      public long running()
      Returns the value of the running record component.
      Returns:
      the value of the running record component
    • completed

      public long completed()
      Returns the value of the completed record component.
      Returns:
      the value of the completed record component
    • failed

      public long failed()
      Returns the value of the failed record component.
      Returns:
      the value of the failed record component
    • cancelled

      public long cancelled()
      Returns the value of the cancelled record component.
      Returns:
      the value of the cancelled record component
    • fencingRejected

      public long fencingRejected()
      Returns the value of the fencingRejected record component.
      Returns:
      the value of the fencingRejected record component
    • overloadedRejected

      public long overloadedRejected()
      Returns the value of the overloadedRejected record component.
      Returns:
      the value of the overloadedRejected record component
    • resourceDenied

      public long resourceDenied()
      Returns the value of the resourceDenied record component.
      Returns:
      the value of the resourceDenied record component
    • asyncStarted

      public long asyncStarted()
      Returns the value of the asyncStarted record component.
      Returns:
      the value of the asyncStarted record component
    • oneWayStarted

      public long oneWayStarted()
      Returns the value of the oneWayStarted record component.
      Returns:
      the value of the oneWayStarted record component
    • streamsStarted

      public long streamsStarted()
      Returns the value of the streamsStarted record component.
      Returns:
      the value of the streamsStarted record component
    • streamCancelled

      public long streamCancelled()
      Returns the value of the streamCancelled record component.
      Returns:
      the value of the streamCancelled record component
    • fanOutCalls

      public long fanOutCalls()
      Returns the value of the fanOutCalls record component.
      Returns:
      the value of the fanOutCalls record component
    • scatterGatherCalls

      public long scatterGatherCalls()
      Returns the value of the scatterGatherCalls record component.
      Returns:
      the value of the scatterGatherCalls record component
    • metadata

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