org.jboss.cache.interceptors
Interface InterceptorMBean

All Known Subinterfaces:
ActivationInterceptorMBean, CacheLoaderInterceptorMBean, CacheMgmtInterceptorMBean, CacheStoreInterceptorMBean, InvalidationInterceptorMBean, InvocationContextInterceptorMBean, PassivationInterceptorMBean, TxInterceptorMBean
All Known Implementing Classes:
ActivationInterceptor, BaseRpcInterceptor, BaseTransactionalContextInterceptor, CacheLoaderInterceptor, CacheMgmtInterceptor, CacheStoreInterceptor, CallInterceptor, DataGravitatorInterceptor, EvictionInterceptor, Interceptor, InvalidationInterceptor, InvocationContextInterceptor, NotificationInterceptor, OptimisticCreateIfNotExistsInterceptor, OptimisticInterceptor, OptimisticLockingInterceptor, OptimisticNodeInterceptor, OptimisticReplicationInterceptor, OptimisticValidatorInterceptor, PassivationInterceptor, PessimisticLockInterceptor, ReplicationInterceptor, TxInterceptor, UnlockInterceptor

public interface InterceptorMBean

Interface containing common cache management operations

Version:
$Id: InterceptorMBean.java,v 1.2 2006/09/05 18:09:56 msurtani Exp $
Author:
Jerry Gauthier

Method Summary
 java.util.Map<java.lang.String,java.lang.Object> dumpStatistics()
          Returns a map of the cache interceptor's statistics Map is keyed on statistic names (which are Strings) and values are Objects.
 boolean getStatisticsEnabled()
          Returns whether an interceptor's statistics are being captured.
 void resetStatistics()
          Resets an interceptor's cache statistics
 void setStatisticsEnabled(boolean enabled)
          Enables an interceptor's cache statistics If true, the interceptor will capture statistics and make them available through the mbean.
 

Method Detail

getStatisticsEnabled

boolean getStatisticsEnabled()
Returns whether an interceptor's statistics are being captured.

Returns:
true if statistics are captured

setStatisticsEnabled

void setStatisticsEnabled(boolean enabled)
Enables an interceptor's cache statistics If true, the interceptor will capture statistics and make them available through the mbean.

Parameters:
enabled - true if statistics should be captured

dumpStatistics

java.util.Map<java.lang.String,java.lang.Object> dumpStatistics()
Returns a map of the cache interceptor's statistics Map is keyed on statistic names (which are Strings) and values are Objects.

Returns:
a map containing statistics

resetStatistics

void resetStatistics()
Resets an interceptor's cache statistics