Record Class MultiClusterStats.Snapshot

java.lang.Object
java.lang.Record
org.openspaces.core.multicluster.MultiClusterStats.Snapshot
Record Components:
cluster - the cluster name
operations - operations routed to this cluster, successful or not
failures - operations that failed because the cluster was unavailable
quiesceRejections - operations rejected because the cluster was quiesced
applicationErrors - operations the cluster rejected on their own merits (bad query, duplicate id, ...) - deliberately kept apart from failures, since they say nothing about cluster health
deferredMutations - mutations queued for later re-application to this cluster
avgLatencyMillis - moving average latency, NaN until the first sample
Enclosing interface:
MultiClusterStats

public static record MultiClusterStats.Snapshot(String cluster, long operations, long failures, long quiesceRejections, long applicationErrors, long deferredMutations, double avgLatencyMillis) extends Record
Point-in-time view of one cluster's counters.
  • Constructor Details

    • Snapshot

      public Snapshot(String cluster, long operations, long failures, long quiesceRejections, long applicationErrors, long deferredMutations, double avgLatencyMillis)
      Creates an instance of a Snapshot record class.
      Parameters:
      cluster - the value for the cluster record component
      operations - the value for the operations record component
      failures - the value for the failures record component
      quiesceRejections - the value for the quiesceRejections record component
      applicationErrors - the value for the applicationErrors record component
      deferredMutations - the value for the deferredMutations record component
      avgLatencyMillis - the value for the avgLatencyMillis record component
  • Method Details

    • failureRatio

      public double failureRatio()
      Share of routed operations that failed, 0 when nothing was routed yet.
    • 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.
    • cluster

      public String cluster()
      Returns the value of the cluster record component.
      Returns:
      the value of the cluster record component
    • operations

      public long operations()
      Returns the value of the operations record component.
      Returns:
      the value of the operations record component
    • failures

      public long failures()
      Returns the value of the failures record component.
      Returns:
      the value of the failures record component
    • quiesceRejections

      public long quiesceRejections()
      Returns the value of the quiesceRejections record component.
      Returns:
      the value of the quiesceRejections record component
    • applicationErrors

      public long applicationErrors()
      Returns the value of the applicationErrors record component.
      Returns:
      the value of the applicationErrors record component
    • deferredMutations

      public long deferredMutations()
      Returns the value of the deferredMutations record component.
      Returns:
      the value of the deferredMutations record component
    • avgLatencyMillis

      public double avgLatencyMillis()
      Returns the value of the avgLatencyMillis record component.
      Returns:
      the value of the avgLatencyMillis record component