Package org.infinispan.stats.impl
Class ClusterContainerStatsImpl
- java.lang.Object
-
- org.infinispan.stats.impl.AbstractClusterStats
-
- org.infinispan.stats.impl.ClusterContainerStatsImpl
-
- All Implemented Interfaces:
JmxStatisticsExposer
,ClusterContainerStats
public class ClusterContainerStatsImpl extends AbstractClusterStats implements ClusterContainerStats
- Since:
- 9.0
- Author:
- Ryan Emerson
-
-
Field Summary
-
Fields inherited from class org.infinispan.stats.impl.AbstractClusterStats
DEFAULT_STALE_STATS_THRESHOLD
-
-
Constructor Summary
Constructors Constructor Description ClusterContainerStatsImpl()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description long
getMemoryAvailable()
long
getMemoryMax()
long
getMemoryTotal()
long
getMemoryUsed()
long
getStaleStatsThreshold()
void
init(EmbeddedCacheManager cacheManager, GlobalConfiguration configuration)
void
reset()
Reset the collected statisticsvoid
setStaleStatsThreshold(long threshold)
void
start()
-
Methods inherited from class org.infinispan.stats.impl.AbstractClusterStats
getStaleStatsThreshold, getStatisticsEnabled, getTimeSinceReset, isStatisticsEnabled, reset, resetStatistics, setStaleStatsThreshold, setStatisticsEnabled
-
-
-
-
Method Detail
-
init
public void init(EmbeddedCacheManager cacheManager, GlobalConfiguration configuration)
-
start
public void start()
-
getMemoryAvailable
public long getMemoryAvailable()
- Specified by:
getMemoryAvailable
in interfaceClusterContainerStats
- Returns:
- the maximum amount of free memory in bytes across the cluster JVMs.
-
getMemoryMax
public long getMemoryMax()
- Specified by:
getMemoryMax
in interfaceClusterContainerStats
- Returns:
- the maximum amount of memory that JVMs across the cluster will attempt to utilise in bytes.
-
getMemoryTotal
public long getMemoryTotal()
- Specified by:
getMemoryTotal
in interfaceClusterContainerStats
- Returns:
- the total amount of memory in the JVMs across the cluster in bytes.
-
getMemoryUsed
public long getMemoryUsed()
- Specified by:
getMemoryUsed
in interfaceClusterContainerStats
- Returns:
- the amount of memory used by JVMs across the cluster in bytes.
-
getStaleStatsThreshold
public abstract long getStaleStatsThreshold()
- Returns:
- The time in milliseconds, to wait between requests before re-retrieving cluster wide stats
-
setStaleStatsThreshold
public abstract void setStaleStatsThreshold(long threshold)
- Parameters:
threshold
- the time in milliseconds, to wait between requests before re-retrieving cluster wide stats
-
reset
public abstract void reset()
Reset the collected statistics
-
-