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
  • Constructor Details

  • 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 interface JmxStatisticsExposer
      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 interface JmxStatisticsExposer
      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 interface JmxStatisticsExposer
    • 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 interface CacheContainerStats
    • 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 interface CacheContainerStats
    • 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 interface CacheContainerStats
    • reset

      public void reset()
      Specified by:
      reset in interface CacheContainerStats
    • toJson

      public Json toJson()
      Specified by:
      toJson in interface CacheContainerStats