public class LocalCacheStatsImpl extends Object implements LocalCacheStats
LocalCacheStats
This class just provides serialization/deserialization methods to be used in
MemberState implementation while sending/receiving statistics to/from
Management center.
There are no calculations are done in this class, all statistics gathered from
CacheStatistics
No setter methods are provided, all class fields supposed to be populated either
by a CacheStatistics or while deserialization process
(fromJson(com.eclipsesource.json.JsonObject).CacheStatisticsSTAT_NOT_AVAILABLE| Constructor and Description |
|---|
LocalCacheStatsImpl() |
LocalCacheStatsImpl(CacheStatistics cacheStatistics) |
| Modifier and Type | Method and Description |
|---|---|
void |
fromJson(com.eclipsesource.json.JsonObject json) |
float |
getAverageGetTime()
Returns the mean time to execute gets on the cache.
|
float |
getAveragePutTime()
Returns the mean time to execute puts on the cache.
|
float |
getAverageRemoveTime()
Returns the mean time to execute removes on the cache.
|
long |
getCacheEvictions()
Returns the number of evictions on the cache.
|
long |
getCacheGets()
Returns the number of gets on the cache.
|
float |
getCacheHitPercentage()
Returns the percentage of hits (successful get operations) on the cache.
|
long |
getCacheHits()
Returns the number of hits (successful get operations) on the cache.
|
long |
getCacheMisses()
Returns the number of missed cache accesses on the cache.
|
float |
getCacheMissPercentage()
Returns the percentage of missed cache accesses on the cache.
|
long |
getCachePuts()
Returns the number of puts to the queue.
|
long |
getCacheRemovals()
Returns the number of removals from the queue.
|
long |
getCreationTime() |
long |
getLastAccessTime()
Gets the last access time to cache.
|
long |
getLastUpdateTime()
Gets the last update time to cache.
|
long |
getOwnedEntryCount()
Returns the owned entry count in the cache.
|
com.eclipsesource.json.JsonObject |
toJson() |
String |
toString() |
public LocalCacheStatsImpl()
public LocalCacheStatsImpl(CacheStatistics cacheStatistics)
public long getLastAccessTime()
LocalCacheStatsgetLastAccessTime in interface LocalCacheStatspublic long getLastUpdateTime()
LocalCacheStatsgetLastUpdateTime in interface LocalCacheStatspublic long getOwnedEntryCount()
LocalCacheStatsgetOwnedEntryCount in interface LocalCacheStatspublic long getCacheHits()
LocalCacheStatsgetCacheHits in interface LocalCacheStatspublic float getCacheHitPercentage()
LocalCacheStatsgetCacheHitPercentage in interface LocalCacheStatspublic long getCacheMisses()
LocalCacheStatsgetCacheMisses in interface LocalCacheStatspublic float getCacheMissPercentage()
LocalCacheStatsgetCacheMissPercentage in interface LocalCacheStatspublic long getCacheGets()
LocalCacheStatsgetCacheGets in interface LocalCacheStatspublic long getCachePuts()
LocalCacheStatsgetCachePuts in interface LocalCacheStatspublic long getCacheRemovals()
LocalCacheStatsgetCacheRemovals in interface LocalCacheStatspublic long getCacheEvictions()
LocalCacheStatsgetCacheEvictions in interface LocalCacheStatspublic float getAverageGetTime()
LocalCacheStatsgetAverageGetTime in interface LocalCacheStatspublic float getAveragePutTime()
LocalCacheStatsgetAveragePutTime in interface LocalCacheStatspublic float getAverageRemoveTime()
LocalCacheStatsgetAverageRemoveTime in interface LocalCacheStatspublic long getCreationTime()
getCreationTime in interface LocalInstanceStatspublic com.eclipsesource.json.JsonObject toJson()
toJson in interface JsonSerializablepublic void fromJson(com.eclipsesource.json.JsonObject json)
fromJson in interface JsonSerializableCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.