Class ClusterSeriesStore
java.lang.Object
com.societegenerale.failover.dashboard.metrics.source.sharedstore.ClusterSeriesStore
Bounded, time-ordered ring of cluster-wide trend points for
cluster.mode=shared-store, pruned by a
RetentionPolicy (age + size, oldest first). Fed by ClusterSeriesSampler; read by
SharedStoreMetricsSource.series(...). In-memory — bounded trend history, not a TSDB.- Author:
- Anand Manissery
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappend(SeriesPoint point) Appends a point (assumed newest) and prunes by size then age.series(long windowSec) intsize()Current number of retained points (diagnostics / tests).
-
Constructor Details
-
Method Details
-
append
Appends a point (assumed newest) and prunes by size then age. -
series
- Parameters:
windowSec- only points captured within this many seconds of now (<= 0returns all retained)- Returns:
- retained points in chronological order
-
size
public int size()Current number of retained points (diagnostics / tests).
-