Class HazelcastCacheStatistics
- java.lang.Object
-
- com.atlassian.confluence.cache.hazelcast.HazelcastCacheStatistics
-
- All Implemented Interfaces:
CacheStatistics
public class HazelcastCacheStatistics extends Object implements CacheStatistics
Hazelcast implementation ofCacheStatistics.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
Constructors Constructor Description HazelcastCacheStatistics(com.atlassian.cache.ManagedCache cache, com.hazelcast.core.IMap<?,?> iMap, FormatSettingsManager formatSettingsManager, I18NBean i18nBean)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetAccessCount()longgetExpiredCount()StringgetFormattedSizeInMegabytes()longgetHitCount()intgetHitPercent()longgetMaxSize()longgetMissCount()StringgetName()StringgetNiceName()longgetSize()longgetSizeInBytes()intgetUsagePercent()booleanhasContents()booleanisNearCache()
-
-
-
Constructor Detail
-
HazelcastCacheStatistics
public HazelcastCacheStatistics(com.atlassian.cache.ManagedCache cache, com.hazelcast.core.IMap<?,?> iMap, FormatSettingsManager formatSettingsManager, I18NBean i18nBean)
-
-
Method Detail
-
getHitCount
public long getHitCount()
- Specified by:
getHitCountin interfaceCacheStatistics
-
getExpiredCount
public long getExpiredCount()
- Specified by:
getExpiredCountin interfaceCacheStatistics
-
getAccessCount
public long getAccessCount()
- Specified by:
getAccessCountin interfaceCacheStatistics
-
getMissCount
public long getMissCount()
- Specified by:
getMissCountin interfaceCacheStatistics
-
getHitPercent
public int getHitPercent()
- Specified by:
getHitPercentin interfaceCacheStatistics
-
getSize
public long getSize()
- Specified by:
getSizein interfaceCacheStatistics
-
getMaxSize
public long getMaxSize()
- Specified by:
getMaxSizein interfaceCacheStatistics
-
getName
public String getName()
- Specified by:
getNamein interfaceCacheStatistics
-
getUsagePercent
public int getUsagePercent()
- Specified by:
getUsagePercentin interfaceCacheStatistics
-
getNiceName
public String getNiceName()
- Specified by:
getNiceNamein interfaceCacheStatistics
-
hasContents
public boolean hasContents()
- Specified by:
hasContentsin interfaceCacheStatistics
-
getFormattedSizeInMegabytes
public String getFormattedSizeInMegabytes()
- Specified by:
getFormattedSizeInMegabytesin interfaceCacheStatistics
-
getSizeInBytes
public long getSizeInBytes()
- Specified by:
getSizeInBytesin interfaceCacheStatistics
-
isNearCache
public boolean isNearCache()
- Specified by:
isNearCachein interfaceCacheStatistics
-
-