public class HazelcastCacheStatistics extends Object implements CacheStatistics
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.
Constructor and Description |
---|
HazelcastCacheStatistics(com.atlassian.cache.ManagedCache cache,
com.hazelcast.core.IMap<?,?> iMap,
FormatSettingsManager formatSettingsManager,
I18NBean i18nBean) |
Modifier and Type | Method and 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() |
public HazelcastCacheStatistics(com.atlassian.cache.ManagedCache cache, com.hazelcast.core.IMap<?,?> iMap, FormatSettingsManager formatSettingsManager, I18NBean i18nBean)
public long getHitCount()
getHitCount
in interface CacheStatistics
public long getExpiredCount()
getExpiredCount
in interface CacheStatistics
public long getAccessCount()
getAccessCount
in interface CacheStatistics
public long getMissCount()
getMissCount
in interface CacheStatistics
public int getHitPercent()
getHitPercent
in interface CacheStatistics
public long getSize()
getSize
in interface CacheStatistics
public long getMaxSize()
getMaxSize
in interface CacheStatistics
public String getName()
getName
in interface CacheStatistics
public int getUsagePercent()
getUsagePercent
in interface CacheStatistics
public String getNiceName()
getNiceName
in interface CacheStatistics
public boolean hasContents()
hasContents
in interface CacheStatistics
public String getFormattedSizeInMegabytes()
getFormattedSizeInMegabytes
in interface CacheStatistics
public long getSizeInBytes()
getSizeInBytes
in interface CacheStatistics
public boolean isNearCache()
isNearCache
in interface CacheStatistics
Copyright © 2003–2018 Atlassian. All rights reserved.