Record Class MultiClusterStats.Snapshot
java.lang.Object
java.lang.Record
org.openspaces.core.multicluster.MultiClusterStats.Snapshot
- Record Components:
cluster- the cluster nameoperations- operations routed to this cluster, successful or notfailures- operations that failed because the cluster was unavailablequiesceRejections- operations rejected because the cluster was quiescedapplicationErrors- operations the cluster rejected on their own merits (bad query, duplicate id, ...) - deliberately kept apart fromfailures, since they say nothing about cluster healthdeferredMutations- mutations queued for later re-application to this clusteravgLatencyMillis- moving average latency,NaNuntil the first sample
- Enclosing interface:
MultiClusterStats
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theapplicationErrorsrecord component.doubleReturns the value of theavgLatencyMillisrecord component.cluster()Returns the value of theclusterrecord component.longReturns the value of thedeferredMutationsrecord component.final booleanIndicates whether some other object is "equal to" this one.doubleShare of routed operations that failed,0when nothing was routed yet.longfailures()Returns the value of thefailuresrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of theoperationsrecord component.longReturns the value of thequiesceRejectionsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Snapshot
public Snapshot(String cluster, long operations, long failures, long quiesceRejections, long applicationErrors, long deferredMutations, double avgLatencyMillis) Creates an instance of aSnapshotrecord class.- Parameters:
cluster- the value for theclusterrecord componentoperations- the value for theoperationsrecord componentfailures- the value for thefailuresrecord componentquiesceRejections- the value for thequiesceRejectionsrecord componentapplicationErrors- the value for theapplicationErrorsrecord componentdeferredMutations- the value for thedeferredMutationsrecord componentavgLatencyMillis- the value for theavgLatencyMillisrecord component
-
-
Method Details
-
failureRatio
public double failureRatio()Share of routed operations that failed,0when nothing was routed yet. -
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. -
cluster
-
operations
public long operations()Returns the value of theoperationsrecord component.- Returns:
- the value of the
operationsrecord component
-
failures
-
quiesceRejections
public long quiesceRejections()Returns the value of thequiesceRejectionsrecord component.- Returns:
- the value of the
quiesceRejectionsrecord component
-
applicationErrors
public long applicationErrors()Returns the value of theapplicationErrorsrecord component.- Returns:
- the value of the
applicationErrorsrecord component
-
deferredMutations
public long deferredMutations()Returns the value of thedeferredMutationsrecord component.- Returns:
- the value of the
deferredMutationsrecord component
-
avgLatencyMillis
public double avgLatencyMillis()Returns the value of theavgLatencyMillisrecord component.- Returns:
- the value of the
avgLatencyMillisrecord component
-