Class CacheContainerStatsImpl
java.lang.Object
org.infinispan.stats.impl.CacheContainerStatsImpl
- All Implemented Interfaces:
JmxStatisticsExposer,CacheContainerStats
@MBean(objectName="CacheContainerStats",
description="General cache container statistics for a single node.")
public class CacheContainerStatsImpl
extends Object
implements CacheContainerStats, JmxStatisticsExposer
Cache container statistics
- Since:
- 7.1
- Author:
- Vladimir Blagojevic
-
Field Summary
Fields inherited from interface org.infinispan.stats.CacheContainerStats
OBJECT_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonglongintbooleanReturns whether an interceptor's statistics are being captured.booleanvoidreset()voidResets an interceptor's cache statisticsvoidsetStatisticsEnabled(boolean enabled) Enables an interceptor's cache statistics If true, the interceptor will capture statistics and make them available through the mbean.toJson()
-
Constructor Details
-
CacheContainerStatsImpl
-
-
Method Details
-
setStatisticsEnabled
public void setStatisticsEnabled(boolean enabled) Description copied from interface:JmxStatisticsExposerEnables an interceptor's cache statistics If true, the interceptor will capture statistics and make them available through the mbean.- Specified by:
setStatisticsEnabledin interfaceJmxStatisticsExposer- Parameters:
enabled- true if statistics should be captured
-
getStatisticsEnabled
public boolean getStatisticsEnabled()Description copied from interface:JmxStatisticsExposerReturns whether an interceptor's statistics are being captured.- Specified by:
getStatisticsEnabledin interfaceJmxStatisticsExposer- Returns:
- true if statistics are captured
-
resetStatistics
public void resetStatistics()Description copied from interface:JmxStatisticsExposerResets an interceptor's cache statistics- Specified by:
resetStatisticsin interfaceJmxStatisticsExposer
-
isStatisticsEnabled
@ManagedAttribute(description="Enables or disables the gathering of statistics by this component", displayName="Statistics enabled", dataType=TRAIT, writable=true) public boolean isStatisticsEnabled() -
getRequiredMinimumNumberOfNodes
@ManagedAttribute(description="Required minimum number of nodes to hold current cache data", displayName="Required minimum number of nodes") public int getRequiredMinimumNumberOfNodes()- Specified by:
getRequiredMinimumNumberOfNodesin interfaceCacheContainerStats
-
getDataMemoryUsed
@ManagedAttribute(description="Amount in bytes of memory used in a given cache container for entries with eviction", displayName="Container memory used by eviction") public long getDataMemoryUsed()- Specified by:
getDataMemoryUsedin interfaceCacheContainerStats
-
getOffHeapMemoryUsed
@ManagedAttribute(description="Amount in bytes of off-heap memory used by this cache container", displayName="Off-Heap memory used") public long getOffHeapMemoryUsed()- Specified by:
getOffHeapMemoryUsedin interfaceCacheContainerStats
-
reset
public void reset()- Specified by:
resetin interfaceCacheContainerStats
-
toJson
- Specified by:
toJsonin interfaceCacheContainerStats
-