com.atlassian.confluence.cache.hazelcast
Class HazelcastCacheStatistics
java.lang.Object
com.atlassian.confluence.cache.hazelcast.HazelcastCacheStatistics
- All Implemented Interfaces:
- CacheStatistics
public class HazelcastCacheStatistics
- extends java.lang.Object
- implements 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HazelcastCacheStatistics
public HazelcastCacheStatistics(com.atlassian.cache.ManagedCache cache,
com.hazelcast.core.IMap<?,?> iMap,
FormatSettingsManager formatSettingsManager,
I18NBean i18nBean)
getHitCount
public long getHitCount()
- Specified by:
getHitCount
in interface CacheStatistics
getExpiredCount
public long getExpiredCount()
- Specified by:
getExpiredCount
in interface CacheStatistics
getAccessCount
public long getAccessCount()
- Specified by:
getAccessCount
in interface CacheStatistics
getMissCount
public long getMissCount()
- Specified by:
getMissCount
in interface CacheStatistics
getHitPercent
public int getHitPercent()
- Specified by:
getHitPercent
in interface CacheStatistics
getSize
public long getSize()
- Specified by:
getSize
in interface CacheStatistics
getMaxSize
public long getMaxSize()
- Specified by:
getMaxSize
in interface CacheStatistics
getName
public java.lang.String getName()
- Specified by:
getName
in interface CacheStatistics
getUsagePercent
public int getUsagePercent()
- Specified by:
getUsagePercent
in interface CacheStatistics
getNiceName
public java.lang.String getNiceName()
- Specified by:
getNiceName
in interface CacheStatistics
hasContents
public boolean hasContents()
- Specified by:
hasContents
in interface CacheStatistics
getFormattedSizeInMegabytes
public java.lang.String getFormattedSizeInMegabytes()
- Specified by:
getFormattedSizeInMegabytes
in interface CacheStatistics
getSizeInBytes
public long getSizeInBytes()
- Specified by:
getSizeInBytes
in interface CacheStatistics
Copyright © 2003-2014 Atlassian. All Rights Reserved.