Class HazelcastStatisticsManager
java.lang.Object
com.atlassian.confluence.cache.hazelcast.HazelcastStatisticsManager
- All Implemented Interfaces:
CacheStatisticsManager
Hazelcast Implementation of
CacheStatisticsManager
.- Since:
- 5.5
-
Field Summary
Fields inherited from interface com.atlassian.confluence.cache.CacheStatisticsManager
CACHE_NAME_PREFIX
-
Constructor Summary
ConstructorsConstructorDescriptionHazelcastStatisticsManager
(com.atlassian.cache.CacheManager cacheManager, FormatSettingsManager formatSettingsManager, I18NBeanFactory i18NBeanFactory, CacheStatisticsManager localCacheStatisticsManager, HazelcastHelper hazelcastHelper) -
Method Summary
Modifier and TypeMethodDescriptionPredicate<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.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
-
HazelcastStatisticsManager
public HazelcastStatisticsManager(com.atlassian.cache.CacheManager cacheManager, FormatSettingsManager formatSettingsManager, I18NBeanFactory i18NBeanFactory, CacheStatisticsManager localCacheStatisticsManager, HazelcastHelper hazelcastHelper)
-
-
Method Details
-
getCacheStatisticFilter
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
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
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
Description copied from interface:CacheStatisticsManager
Returns the set of optional capabilities supported by this implementation- Specified by:
getCapabilities
in interfaceCacheStatisticsManager
-