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)
.CacheStatistics
STAT_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()
LocalCacheStats
getLastAccessTime
in interface LocalCacheStats
public long getLastUpdateTime()
LocalCacheStats
getLastUpdateTime
in interface LocalCacheStats
public long getOwnedEntryCount()
LocalCacheStats
getOwnedEntryCount
in interface LocalCacheStats
public long getCacheHits()
LocalCacheStats
getCacheHits
in interface LocalCacheStats
public float getCacheHitPercentage()
LocalCacheStats
getCacheHitPercentage
in interface LocalCacheStats
public long getCacheMisses()
LocalCacheStats
getCacheMisses
in interface LocalCacheStats
public float getCacheMissPercentage()
LocalCacheStats
getCacheMissPercentage
in interface LocalCacheStats
public long getCacheGets()
LocalCacheStats
getCacheGets
in interface LocalCacheStats
public long getCachePuts()
LocalCacheStats
getCachePuts
in interface LocalCacheStats
public long getCacheRemovals()
LocalCacheStats
getCacheRemovals
in interface LocalCacheStats
public long getCacheEvictions()
LocalCacheStats
getCacheEvictions
in interface LocalCacheStats
public float getAverageGetTime()
LocalCacheStats
getAverageGetTime
in interface LocalCacheStats
public float getAveragePutTime()
LocalCacheStats
getAveragePutTime
in interface LocalCacheStats
public float getAverageRemoveTime()
LocalCacheStats
getAverageRemoveTime
in interface LocalCacheStats
public long getCreationTime()
getCreationTime
in interface LocalInstanceStats
public com.eclipsesource.json.JsonObject toJson()
toJson
in interface JsonSerializable
public void fromJson(com.eclipsesource.json.JsonObject json)
fromJson
in interface JsonSerializable
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.