public class HazelcastStatisticsManager extends Object implements CacheStatisticsManager
CacheStatisticsManager
.CACHE_NAME_PREFIX
Constructor and Description |
---|
HazelcastStatisticsManager(com.atlassian.cache.CacheManager cacheManager,
FormatSettingsManager formatSettingsManager,
I18NBeanFactory i18NBeanFactory,
CacheStatisticsManager localCacheStatisticsManager,
HazelcastHelper hazelcastHelper) |
Modifier and Type | Method and Description |
---|---|
Predicate<com.atlassian.cache.CacheStatisticsKey> |
getCacheStatisticFilter(String cacheName)
For a given cache, returns a predicate that can be used to filter which
CacheStatisticsKey s are
appropriate for that cache. |
Set<CacheStatisticsCapability> |
getCapabilities()
Returns the set of optional capabilities supported by this implementation
|
List<CacheStatistics> |
getLocalCacheStatistics()
Retrieve all the cache statistics for locally held caches.
|
CacheStatistics |
getLocalCacheStatistics(String cacheName)
Retrieve the cache statistics for one locally held cache.
|
public HazelcastStatisticsManager(com.atlassian.cache.CacheManager cacheManager, FormatSettingsManager formatSettingsManager, I18NBeanFactory i18NBeanFactory, CacheStatisticsManager localCacheStatisticsManager, HazelcastHelper hazelcastHelper)
public Predicate<com.atlassian.cache.CacheStatisticsKey> getCacheStatisticFilter(String cacheName)
CacheStatisticsManager
CacheStatisticsKey
s are
appropriate for that cache. For example, it may not be appropriate to measure the heap size for a given cache,
so CacheStatisticsKey.HEAP_SIZE
will not pass the predicate.getCacheStatisticFilter
in interface CacheStatisticsManager
public List<CacheStatistics> getLocalCacheStatistics()
CacheStatisticsManager
getLocalCacheStatistics
in interface CacheStatisticsManager
CacheStatistics.getNiceName()
.public CacheStatistics getLocalCacheStatistics(String cacheName)
CacheStatisticsManager
getLocalCacheStatistics
in interface CacheStatisticsManager
CacheStatistics.getNiceName()
.public Set<CacheStatisticsCapability> getCapabilities()
CacheStatisticsManager
getCapabilities
in interface CacheStatisticsManager
Copyright © 2003–2020 Atlassian. All rights reserved.