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
Since:
9.0
Author:
Ryan Emerson
  • Field Details

    • DEFAULT_STALE_STATS_THRESHOLD

      public static final long DEFAULT_STALE_STATS_THRESHOLD
      See Also:
    • staleStatsThreshold

      protected volatile long staleStatsThreshold
    • statsUpdateTimestamp

      protected volatile long statsUpdateTimestamp
    • log

      protected final org.infinispan.util.logging.Log log
  • Method Details

    • getStaleStatsThreshold

      @ManagedAttribute(description="Gets the threshold for cluster wide stats refresh (milliseconds)", displayName="Stale Stats Threshold", dataType=TRAIT, writable=true, clusterWide=true) public long getStaleStatsThreshold()
    • getTimeSinceReset

      @ManagedAttribute(description="Number of seconds since the cluster-wide statistics were last reset", displayName="Seconds since cluster-wide statistics were reset", units=SECONDS, clusterWide=true) public long getTimeSinceReset()
    • isStatisticsEnabled

      @ManagedAttribute(description="Enables or disables the gathering of statistics by this component", displayName="Statistics enabled", dataType=TRAIT, writable=true, clusterWide=true) public boolean isStatisticsEnabled()
    • reset

      public void reset()
    • resetStatistics

      @ManagedOperation(description="Resets statistics gathered by this component", displayName="Reset statistics") public void resetStatistics()
      Description copied from interface: JmxStatisticsExposer
      Resets an interceptor's cache statistics
      Specified by:
      resetStatistics in interface JmxStatisticsExposer
    • 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
    • setStaleStatsThreshold

      public void setStaleStatsThreshold(long staleStatsThreshold)
    • getStat

      protected Number getStat(String attribute)