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 whichCacheStatisticsKey
s 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.CacheStatistics
getLocalCacheStatistics(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:CacheStatisticsManager
For a given cache, returns a predicate that can be used to filter whichCacheStatisticsKey
s are appropriate for that cache. For example, it may not be appropriate to measure the heap size for a given cache, soCacheStatisticsKey.HEAP_SIZE
will not pass the predicate.- Specified by:
getCacheStatisticFilter
in interfaceCacheStatisticsManager
-
getLocalCacheStatistics
public List<CacheStatistics> getLocalCacheStatistics()
Description copied from interface:CacheStatisticsManager
Retrieve 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:
getLocalCacheStatistics
in interfaceCacheStatisticsManager
- Returns:
- list of cache statistics sorted by their localised
CacheStatistics.getNiceName()
.
-
getLocalCacheStatistics
public CacheStatistics getLocalCacheStatistics(String cacheName)
Description copied from interface:CacheStatisticsManager
Retrieve 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:
getLocalCacheStatistics
in interfaceCacheStatisticsManager
- Returns:
- list of cache statistics sorted by their localised
CacheStatistics.getNiceName()
.
-
getCapabilities
public Set<CacheStatisticsCapability> getCapabilities()
Description copied from interface:CacheStatisticsManager
Returns the set of optional capabilities supported by this implementation- Specified by:
getCapabilities
in interfaceCacheStatisticsManager
-
-