Class HazelcastStatisticsManager
- java.lang.Object
-
- com.atlassian.confluence.cache.hazelcast.HazelcastStatisticsManager
-
- All Implemented Interfaces:
CacheStatisticsManager
public class HazelcastStatisticsManager extends Object implements CacheStatisticsManager
Hazelcast Implementation ofCacheStatisticsManager.- Since:
- 5.5
-
-
Field Summary
-
Fields inherited from interface com.atlassian.confluence.cache.CacheStatisticsManager
CACHE_NAME_PREFIX
-
-
Constructor Summary
Constructors Constructor Description HazelcastStatisticsManager(com.atlassian.cache.CacheManager cacheManager, FormatSettingsManager formatSettingsManager, I18NBeanFactory i18NBeanFactory, CacheStatisticsManager localCacheStatisticsManager, HazelcastHelper hazelcastHelper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Predicate<com.atlassian.cache.CacheStatisticsKey>getCacheStatisticFilter(String cacheName)For a given cache, returns a predicate that can be used to filter whichCacheStatisticsKeys are appropriate for that cache.Set<CacheStatisticsCapability>getCapabilities()Returns the set of optional capabilities supported by this implementationList<CacheStatistics>getLocalCacheStatistics()Retrieve all the cache statistics for locally held caches.CacheStatisticsgetLocalCacheStatistics(String cacheName)Retrieve the cache statistics for one locally held cache.
-
-
-
Constructor Detail
-
HazelcastStatisticsManager
public HazelcastStatisticsManager(com.atlassian.cache.CacheManager cacheManager, FormatSettingsManager formatSettingsManager, I18NBeanFactory i18NBeanFactory, CacheStatisticsManager localCacheStatisticsManager, HazelcastHelper hazelcastHelper)
-
-
Method Detail
-
getCacheStatisticFilter
public Predicate<com.atlassian.cache.CacheStatisticsKey> getCacheStatisticFilter(String cacheName)
Description copied from interface:CacheStatisticsManagerFor a given cache, returns a predicate that can be used to filter whichCacheStatisticsKeys are appropriate for that cache. For example, it may not be appropriate to measure the heap size for a given cache, soCacheStatisticsKey.HEAP_SIZEwill not pass the predicate.- Specified by:
getCacheStatisticFilterin interfaceCacheStatisticsManager
-
getLocalCacheStatistics
public List<CacheStatistics> 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
public CacheStatistics getLocalCacheStatistics(String cacheName)
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
public Set<CacheStatisticsCapability> getCapabilities()
Description copied from interface:CacheStatisticsManagerReturns the set of optional capabilities supported by this implementation- Specified by:
getCapabilitiesin interfaceCacheStatisticsManager
-
-