Class HazelcastCacheStatistics
java.lang.Object
com.atlassian.confluence.cache.hazelcast.HazelcastCacheStatistics
- All Implemented Interfaces:
CacheStatistics
Hazelcast implementation of
CacheStatistics
.
Note that the stats presented by this class only relate to the data held locally on the current node, not to the cluster as a whole.
Also, Hazelcast doesn't expose the full range of stats that this interface require. Some of the stats may therefore return "default" values.
- Since:
- 5.5
-
Constructor Summary
ConstructorsConstructorDescriptionHazelcastCacheStatistics
(com.atlassian.cache.ManagedCache cache, com.hazelcast.map.IMap<?, ?> iMap, FormatSettingsManager formatSettingsManager, I18NBean i18nBean) -
Method Summary
-
Constructor Details
-
HazelcastCacheStatistics
public HazelcastCacheStatistics(com.atlassian.cache.ManagedCache cache, com.hazelcast.map.IMap<?, ?> iMap, FormatSettingsManager formatSettingsManager, I18NBean i18nBean)
-
-
Method Details
-
getHitCount
public long getHitCount()- Specified by:
getHitCount
in interfaceCacheStatistics
-
getExpiredCount
public long getExpiredCount()- Specified by:
getExpiredCount
in interfaceCacheStatistics
-
getAccessCount
public long getAccessCount()- Specified by:
getAccessCount
in interfaceCacheStatistics
-
getMissCount
public long getMissCount()- Specified by:
getMissCount
in interfaceCacheStatistics
-
getHitPercent
public int getHitPercent()- Specified by:
getHitPercent
in interfaceCacheStatistics
-
getSize
public long getSize()- Specified by:
getSize
in interfaceCacheStatistics
-
getMaxSize
public long getMaxSize()- Specified by:
getMaxSize
in interfaceCacheStatistics
-
getName
- Specified by:
getName
in interfaceCacheStatistics
-
getUsagePercent
public int getUsagePercent()- Specified by:
getUsagePercent
in interfaceCacheStatistics
-
getNiceName
- Specified by:
getNiceName
in interfaceCacheStatistics
-
hasContents
public boolean hasContents()- Specified by:
hasContents
in interfaceCacheStatistics
-
getFormattedSizeInMegabytes
- Specified by:
getFormattedSizeInMegabytes
in interfaceCacheStatistics
-
getSizeInBytes
public long getSizeInBytes()- Specified by:
getSizeInBytes
in interfaceCacheStatistics
-
isNearCache
public boolean isNearCache()- Specified by:
isNearCache
in interfaceCacheStatistics
-