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 CacheStatisticspublic long getExpiredCount()
getExpiredCount in interface CacheStatisticspublic long getAccessCount()
getAccessCount in interface CacheStatisticspublic long getMissCount()
getMissCount in interface CacheStatisticspublic int getHitPercent()
getHitPercent in interface CacheStatisticspublic long getSize()
getSize in interface CacheStatisticspublic long getMaxSize()
getMaxSize in interface CacheStatisticspublic String getName()
getName in interface CacheStatisticspublic int getUsagePercent()
getUsagePercent in interface CacheStatisticspublic String getNiceName()
getNiceName in interface CacheStatisticspublic boolean hasContents()
hasContents in interface CacheStatisticspublic String getFormattedSizeInMegabytes()
getFormattedSizeInMegabytes in interface CacheStatisticspublic long getSizeInBytes()
getSizeInBytes in interface CacheStatisticspublic boolean isNearCache()
isNearCache in interface CacheStatisticsCopyright © 2003–2022 Atlassian. All rights reserved.