Class JmxStatsCommandInterceptor

All Implemented Interfaces:
Visitor, AsyncInterceptor, JmxStatisticsExposer
Direct Known Subclasses:
CacheLoaderInterceptor, CacheMgmtInterceptor, CacheWriterInterceptor

@MBean public abstract class JmxStatsCommandInterceptor extends DDAsyncInterceptor implements JmxStatisticsExposer
Base class for all the interceptors exposing management statistics.
Since:
9.0
Author:
[email protected]
  • Constructor Details

    • JmxStatsCommandInterceptor

      public JmxStatsCommandInterceptor()
  • Method Details

    • onStart

      public final void onStart()
    • getStatisticsEnabled

      @ManagedAttribute(description="Enables or disables the gathering of statistics by this component", writable=true) public boolean getStatisticsEnabled()
      Returns whether an interceptor's statistics are being captured.
      Specified by:
      getStatisticsEnabled in interface JmxStatisticsExposer
      Returns:
      true if statistics are captured
    • 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 - whether gathering statistics for JMX are enabled.
    • resetStatistics

      @ManagedOperation(displayName="Reset Statistics", description="Resets statistics gathered by this component") public void resetStatistics()
      Resets statistics gathered. Is a no-op, and should be overridden if it is to be meaningful.
      Specified by:
      resetStatistics in interface JmxStatisticsExposer