Interface MultiClusterStats
- All Known Implementing Classes:
MultiClusterStatsRecorder
public interface MultiClusterStats
Read-only per-cluster counters: how many operations went where, how many failed, and how slow each
cluster looks. Obtained from
MultiClusterGigaSpace.getStats().
Recording is not part of this interface. The proxy writes these counters on the data path and the
application reads them; letting application code increment them would corrupt the numbers an operator
is watching. The recording side lives in
org.openspaces.core.multicluster.internal.MultiClusterStatsRecorder.
The latency figure is an exponentially weighted moving average: it tracks recent behaviour, which is what an operator watching a slow site needs, rather than a lifetime mean that a long-past outage would poison.
Implementations are thread-safe; snapshots are immutable.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordPoint-in-time view of one cluster's counters. -
Method Summary
Modifier and TypeMethodDescriptionCurrent counters for one cluster, ornullif that cluster is unknown.Current counters for every tracked cluster, ordered by name for stable output.
-
Method Details
-
snapshot
Current counters for one cluster, ornullif that cluster is unknown. -
snapshots
List<MultiClusterStats.Snapshot> snapshots()Current counters for every tracked cluster, ordered by name for stable output.
-