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 TypeMethodDescriptionlong
long
int
boolean
Returns whether an interceptor's statistics are being captured.boolean
void
reset()
void
Resets an interceptor's cache statisticsvoid
setStatisticsEnabled
(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: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
-
resetStatistics
public void resetStatistics()Description copied from interface:JmxStatisticsExposer
Resets an interceptor's cache statistics- Specified by:
resetStatistics
in 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:
getRequiredMinimumNumberOfNodes
in 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:
getDataMemoryUsed
in 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:
getOffHeapMemoryUsed
in interfaceCacheContainerStats
-
reset
public void reset()- Specified by:
reset
in interfaceCacheContainerStats
-
toJson
- Specified by:
toJson
in interfaceCacheContainerStats
-