Package org.infinispan.stats.impl
Class AbstractClusterStats
- java.lang.Object
-
- org.infinispan.stats.impl.AbstractClusterStats
-
- All Implemented Interfaces:
JmxStatisticsExposer
- Direct Known Subclasses:
ClusterCacheStatsImpl
,ClusterContainerStatsImpl
public abstract class AbstractClusterStats extends Object implements JmxStatisticsExposer
- Since:
- 9.0
- Author:
- Ryan Emerson
-
-
Field Summary
Fields Modifier and Type Field Description static long
DEFAULT_STALE_STATS_THRESHOLD
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getStaleStatsThreshold()
boolean
getStatisticsEnabled()
Returns whether an interceptor's statistics are being captured.long
getTimeSinceReset()
boolean
isStatisticsEnabled()
void
reset()
void
resetStatistics()
Resets an interceptor's cache statisticsvoid
setStaleStatsThreshold(long staleStatsThreshold)
void
setStatisticsEnabled(boolean enabled)
Enables an interceptor's cache statistics If true, the interceptor will capture statistics and make them available through the mbean.
-
-
-
Field Detail
-
DEFAULT_STALE_STATS_THRESHOLD
public static final long DEFAULT_STALE_STATS_THRESHOLD
- See Also:
- Constant Field Values
-
-
Method Detail
-
reset
public void reset()
-
getStaleStatsThreshold
public long getStaleStatsThreshold()
-
setStaleStatsThreshold
public void setStaleStatsThreshold(long staleStatsThreshold)
-
resetStatistics
public void resetStatistics()
Description copied from interface:JmxStatisticsExposer
Resets an interceptor's cache statistics- Specified by:
resetStatistics
in interfaceJmxStatisticsExposer
-
getTimeSinceReset
public long getTimeSinceReset()
-
setStatisticsEnabled
public void setStatisticsEnabled(boolean enabled)
Description copied from interface:JmxStatisticsExposer
Enables an interceptor's cache statistics If true, the interceptor will capture statistics and make them available through the mbean.- Specified by:
setStatisticsEnabled
in interfaceJmxStatisticsExposer
- Parameters:
enabled
- true if statistics should be captured
-
getStatisticsEnabled
public boolean getStatisticsEnabled()
Description copied from interface:JmxStatisticsExposer
Returns whether an interceptor's statistics are being captured.- Specified by:
getStatisticsEnabled
in interfaceJmxStatisticsExposer
- Returns:
- true if statistics are captured
-
isStatisticsEnabled
public boolean isStatisticsEnabled()
-
-