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)
, or readData(com.hazelcast.nio.ObjectDataInput)
).CacheStatistics
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() |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
com.eclipsesource.json.JsonObject |
toJson() |
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
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 void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- outputIOException
public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
public com.eclipsesource.json.JsonObject toJson()
toJson
in interface JsonSerializable
public void fromJson(com.eclipsesource.json.JsonObject json)
fromJson
in interface JsonSerializable
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.