org.jboss.cache.jmx
Interface JmxStatisticsExposer

All Known Implementing Classes:
ActivationInterceptor, CacheLoaderInterceptor, CacheMgmtInterceptor, JmxStatsCommandInterceptor, LegacyActivationInterceptor, LegacyCacheLoaderInterceptor, LegacyPassivationInterceptor, PassivationInterceptor

public interface JmxStatisticsExposer

Interface containing common cache management operations

Version:
$Id: JmxStatisticsExposer.java 7168 2008-11-19 17:37:20Z jason.greene@jboss.com $
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 © 2009 JBoss, a division of Red Hat. All Rights Reserved.