Class EhCacheStatisticsManager
java.lang.Object
com.atlassian.confluence.cache.ehcache.EhCacheStatisticsManager
- All Implemented Interfaces:
CacheStatisticsManager
Provides CacheStatistics for EhCache.
-
Field Summary
Fields inherited from interface com.atlassian.confluence.cache.CacheStatisticsManager
CACHE_NAME_PREFIX -
Constructor Summary
ConstructorsConstructorDescriptionEhCacheStatisticsManager(I18NBeanFactory i18NBeanFactory, net.sf.ehcache.CacheManager ehCacheManager, EhCacheSettingsDefaultsProvider settingsProvider, FormatSettingsManager formatSettingsManager) -
Method Summary
Modifier and TypeMethodDescriptionPredicate<com.atlassian.cache.CacheStatisticsKey>getCacheStatisticFilter(String cacheName) EhCacheSettingsDefaultsProviderhas knowledge of which caches it is safe to measure the heap size of, so we return a predicate that will removeCacheStatisticsKey.HEAP_SIZEin those cases.Returns the set of optional capabilities supported by this implementationRetrieve all the cache statistics for locally held caches.getLocalCacheStatistics(String cacheName) Retrieve the cache statistics for one locally held cache.
-
Constructor Details
-
EhCacheStatisticsManager
public EhCacheStatisticsManager(I18NBeanFactory i18NBeanFactory, net.sf.ehcache.CacheManager ehCacheManager, EhCacheSettingsDefaultsProvider settingsProvider, FormatSettingsManager formatSettingsManager) throws org.dom4j.DocumentException - Throws:
org.dom4j.DocumentException
-
-
Method Details
-
getLocalCacheStatistics
Description copied from interface:CacheStatisticsManagerRetrieve all the cache statistics for locally held caches. In a clustered setting, distributed caches will report only on the locally held portion of the cache.- Specified by:
getLocalCacheStatisticsin interfaceCacheStatisticsManager- Returns:
- list of cache statistics sorted by their localised
CacheStatistics.getNiceName().
-
getLocalCacheStatistics
Description copied from interface:CacheStatisticsManagerRetrieve the cache statistics for one locally held cache. In a clustered setting, distributed caches will report only on the locally held portion of the cache.- Specified by:
getLocalCacheStatisticsin interfaceCacheStatisticsManager- Returns:
- list of cache statistics sorted by their localised
CacheStatistics.getNiceName().
-
getCapabilities
Description copied from interface:CacheStatisticsManagerReturns the set of optional capabilities supported by this implementation- Specified by:
getCapabilitiesin interfaceCacheStatisticsManager- Since:
- 5.5
-
getCacheStatisticFilter
EhCacheSettingsDefaultsProviderhas knowledge of which caches it is safe to measure the heap size of, so we return a predicate that will removeCacheStatisticsKey.HEAP_SIZEin those cases.- Specified by:
getCacheStatisticFilterin interfaceCacheStatisticsManager- Since:
- 7.5
-