org.infinispan.interceptors.base
Class JmxStatsCommandInterceptor
java.lang.Object
org.infinispan.commands.AbstractVisitor
org.infinispan.interceptors.base.CommandInterceptor
org.infinispan.interceptors.base.JmxStatsCommandInterceptor
- All Implemented Interfaces:
- Visitor, JmxStatisticsExposer
- Direct Known Subclasses:
- CacheLoaderInterceptor, CacheMgmtInterceptor, CacheStoreInterceptor, PassivationInterceptor
public abstract class JmxStatsCommandInterceptor
- extends CommandInterceptor
- implements JmxStatisticsExposer
Base class for all the interceptors exposing management statistics.
- Since:
- 4.0
- Author:
- Mircea.Markus@jboss.com
Methods inherited from class org.infinispan.commands.AbstractVisitor |
visitApplyDeltaCommand, visitClearCommand, visitCollection, visitCommitCommand, visitDistributedExecuteCommand, visitEntrySetCommand, visitEvictCommand, visitGetKeyValueCommand, visitInvalidateCommand, visitInvalidateL1Command, visitKeySetCommand, visitLockControlCommand, visitPrepareCommand, visitPutKeyValueCommand, visitPutMapCommand, visitRemoveCommand, visitReplaceCommand, visitRollbackCommand, visitSizeCommand, visitUnknownCommand, visitValuesCommand |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JmxStatsCommandInterceptor
public JmxStatsCommandInterceptor()
checkStatisticsUsed
public void checkStatisticsUsed()
getStatisticsEnabled
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
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
Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.