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 long
getAccessCount()
long
getExpiredCount()
String
getFormattedSizeInMegabytes()
long
getHitCount()
int
getHitPercent()
long
getMaxSize()
long
getMissCount()
String
getName()
String
getNiceName()
long
getSize()
long
getSizeInBytes()
int
getUsagePercent()
boolean
hasContents()
boolean
isNearCache()
-
-
-
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:
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
public String getName()
- Specified by:
getName
in interfaceCacheStatistics
-
getUsagePercent
public int getUsagePercent()
- Specified by:
getUsagePercent
in interfaceCacheStatistics
-
getNiceName
public String getNiceName()
- Specified by:
getNiceName
in interfaceCacheStatistics
-
hasContents
public boolean hasContents()
- Specified by:
hasContents
in interfaceCacheStatistics
-
getFormattedSizeInMegabytes
public String getFormattedSizeInMegabytes()
- Specified by:
getFormattedSizeInMegabytes
in interfaceCacheStatistics
-
getSizeInBytes
public long getSizeInBytes()
- Specified by:
getSizeInBytes
in interfaceCacheStatistics
-
isNearCache
public boolean isNearCache()
- Specified by:
isNearCache
in interfaceCacheStatistics
-
-