com.atlassian.confluence.cache.ehcache
Class EhCacheStatisticsManager

java.lang.Object
  extended by com.atlassian.confluence.cache.ehcache.EhCacheStatisticsManager
All Implemented Interfaces:
CacheStatisticsManager

public class EhCacheStatisticsManager
extends java.lang.Object
implements CacheStatisticsManager

Provides CacheStatistics for EhCache.


Field Summary
 
Fields inherited from interface com.atlassian.confluence.cache.CacheStatisticsManager
CACHE_NAME_PREFIX
 
Constructor Summary
EhCacheStatisticsManager(I18NBeanFactory i18NBeanFactory, net.sf.ehcache.CacheManager ehCacheManager, EhCacheManagementConfig managementConfig, FormatSettingsManager formatSettingsManager)
           
 
Method Summary
 java.util.Set<CacheStatisticsCapability> getCapabilities()
          Returns the set of optional capabilities supported by this implementation
 java.util.List<CacheStatistics> getLocalCacheStatistics()
          Retrieve all the cache statistics for locally held caches.
 CacheStatistics getLocalCacheStatistics(java.lang.String cacheName)
          Retrieve the cache statistics for one locally held cache.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EhCacheStatisticsManager

public EhCacheStatisticsManager(I18NBeanFactory i18NBeanFactory,
                                net.sf.ehcache.CacheManager ehCacheManager,
                                EhCacheManagementConfig managementConfig,
                                FormatSettingsManager formatSettingsManager)
                         throws org.dom4j.DocumentException
Throws:
org.dom4j.DocumentException
Method Detail

getLocalCacheStatistics

public java.util.List<CacheStatistics> getLocalCacheStatistics()
Description copied from interface: CacheStatisticsManager
Retrieve all the cache statistics for locally held caches. This doesn't include clustered caches.

Specified by:
getLocalCacheStatistics in interface CacheStatisticsManager
Returns:
list of cache statistics sorted by their localised CacheStatistics.getNiceName().

getLocalCacheStatistics

public CacheStatistics getLocalCacheStatistics(java.lang.String cacheName)
Description copied from interface: CacheStatisticsManager
Retrieve the cache statistics for one locally held cache. This cannot be used to fetch clustered cache statistics.

Specified by:
getLocalCacheStatistics in interface CacheStatisticsManager
Returns:
list of cache statistics sorted by their localised CacheStatistics.getNiceName().

getCapabilities

public java.util.Set<CacheStatisticsCapability> getCapabilities()
Description copied from interface: CacheStatisticsManager
Returns the set of optional capabilities supported by this implementation

Specified by:
getCapabilities in interface CacheStatisticsManager
Since:
5.5


Copyright © 2003-2014 Atlassian. All Rights Reserved.