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()
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 LocalCacheStatspublic float getCacheHitPercentage()
getCacheHitPercentage in interface LocalCacheStatspublic long getCacheMisses()
getCacheMisses in interface LocalCacheStatspublic float getCacheMissPercentage()
getCacheMissPercentage in interface LocalCacheStatspublic long getCacheGets()
getCacheGets in interface LocalCacheStatspublic long getCachePuts()
getCachePuts in interface LocalCacheStatspublic long getCacheRemovals()
getCacheRemovals in interface LocalCacheStatspublic long getCacheEvictions()
getCacheEvictions 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 © 2015 Hazelcast, Inc.. All Rights Reserved.