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, MarshalledValueInterceptor, MethodDispacherInterceptor, 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 2478 2006-09-05 18:09:57Z msurtani $
Author:
Jerry Gauthier

Method Summary
 Map<String,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

Map<String,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



Copyright © 2008 JBoss, a division of Red Hat. All Rights Reserved.