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()
The mean time to execute gets
|
float |
getAveragePutTime()
The mean time to execute puts
|
float |
getAverageRemoveTime()
The mean time to execute removes
|
long |
getCacheEvictions() |
long |
getCacheGets() |
float |
getCacheHitPercentage() |
long |
getCacheHits() |
long |
getCacheMisses() |
float |
getCacheMissPercentage() |
long |
getCachePuts() |
long |
getCacheRemovals() |
long |
getCreationTime() |
com.eclipsesource.json.JsonObject |
toJson() |
String |
toString() |
public LocalCacheStatsImpl()
public LocalCacheStatsImpl(CacheStatistics cacheStatistics)
public long getCacheHits()
getCacheHits
in interface LocalCacheStats
public float getCacheHitPercentage()
getCacheHitPercentage
in interface LocalCacheStats
public long getCacheMisses()
getCacheMisses
in interface LocalCacheStats
public float getCacheMissPercentage()
getCacheMissPercentage
in interface LocalCacheStats
public long getCacheGets()
getCacheGets
in interface LocalCacheStats
public long getCachePuts()
getCachePuts
in interface LocalCacheStats
public long getCacheRemovals()
getCacheRemovals
in interface LocalCacheStats
public long getCacheEvictions()
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 © 2014 Hazelcast, Inc.. All Rights Reserved.