Class MultiClusterStatsRecorder
java.lang.Object
org.openspaces.core.multicluster.internal.MultiClusterStatsRecorder
- All Implemented Interfaces:
MultiClusterStats
The recording side of
MultiClusterStats. Not API - the application sees only the read-only
interface, through MultiClusterGigaSpace.getStats().
Recording happens on the data path, so it uses LongAdders and a single CAS for the latency
average - no locks, no allocation per operation. Reading produces an immutable
MultiClusterStats.Snapshot.
-
Nested Class Summary
Nested classes/interfaces inherited from interface MultiClusterStats
MultiClusterStats.Snapshot -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDrops a cluster's counters, for use when it is unregistered.voidrecordApplicationError(String cluster) Records an operation the cluster rejected on its own merits - a duplicate id, an invalid query.voidrecordDeferredMutation(String cluster) Records a mutation queued for later re-application (async fan-out or quiesce retry).voidrecordFailure(String cluster) Records an operation that failed because the cluster was unavailable.voidrecordQuiesceRejection(String cluster) Records an operation rejected because the cluster is quiesced - not a health failure.voidrecordSuccess(String cluster, long durationNanos) Records a successful operation and folds its duration into the cluster's moving average.Current counters for one cluster, ornullif that cluster is unknown.Current counters for every tracked cluster, ordered by name for stable output.toString()voidMakes a cluster visible in snapshots before it has served anything.
-
Constructor Details
-
MultiClusterStatsRecorder
public MultiClusterStatsRecorder()
-
-
Method Details
-
recordSuccess
Records a successful operation and folds its duration into the cluster's moving average. -
recordFailure
Records an operation that failed because the cluster was unavailable. -
recordApplicationError
Records an operation the cluster rejected on its own merits - a duplicate id, an invalid query. Counted separately from failures on purpose: treating these as cluster failures would let one repeated bad call fail an entire site over. -
recordQuiesceRejection
Records an operation rejected because the cluster is quiesced - not a health failure. -
recordDeferredMutation
Records a mutation queued for later re-application (async fan-out or quiesce retry). -
track
Makes a cluster visible in snapshots before it has served anything. -
forget
Drops a cluster's counters, for use when it is unregistered. -
snapshot
Description copied from interface:MultiClusterStatsCurrent counters for one cluster, ornullif that cluster is unknown.- Specified by:
snapshotin interfaceMultiClusterStats
-
snapshots
Description copied from interface:MultiClusterStatsCurrent counters for every tracked cluster, ordered by name for stable output.- Specified by:
snapshotsin interfaceMultiClusterStats
-
toString
-