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.hazelcast.internal.json.JsonObject)
.CacheStatistics
STAT_NOT_AVAILABLE
Constructor and Description |
---|
LocalCacheStatsImpl() |
LocalCacheStatsImpl(CacheStatistics cacheStatistics) |
Modifier and Type | Method and Description |
---|---|
void |
fromJson(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()
Returns the creation time of this distributed object instance on this member.
|
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.
|
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()
LocalInstanceStats
getCreationTime
in interface LocalInstanceStats
public JsonObject toJson()
toJson
in interface JsonSerializable
public void fromJson(JsonObject json)
fromJson
in interface JsonSerializable
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.