public class NearCacheStatsImpl extends Object implements NearCacheStats
STAT_NOT_AVAILABLE| Constructor and Description |
|---|
NearCacheStatsImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
fromJson(com.eclipsesource.json.JsonObject json) |
long |
getCreationTime()
Returns the creation time of this NearCache on this member
|
long |
getHits()
Returns the number of hits (reads) of the locally owned entries.
|
long |
getMisses()
Returns the number of misses of the locally owned entries.
|
long |
getOwnedEntryCount()
Returns the number of entries owned by this member.
|
long |
getOwnedEntryMemoryCost()
Returns memory cost (number of bytes) of entries in this cache.
|
double |
getRatio()
Returns the hit/miss ratio of the locally owned entries.
|
void |
incrementHits() |
void |
incrementMisses() |
void |
setHits(long hits) |
void |
setOwnedEntryCount(long ownedEntryCount) |
void |
setOwnedEntryMemoryCost(long ownedEntryMemoryCost) |
com.eclipsesource.json.JsonObject |
toJson() |
String |
toString() |
public long getCreationTime()
NearCacheStatsgetCreationTime in interface LocalInstanceStatsgetCreationTime in interface NearCacheStatspublic long getOwnedEntryCount()
NearCacheStatsgetOwnedEntryCount in interface NearCacheStatspublic void setOwnedEntryCount(long ownedEntryCount)
public long getOwnedEntryMemoryCost()
NearCacheStatsgetOwnedEntryMemoryCost in interface NearCacheStatspublic long getHits()
NearCacheStatsgetHits in interface NearCacheStatspublic long getMisses()
NearCacheStatsgetMisses in interface NearCacheStatspublic void setHits(long hits)
public double getRatio()
NearCacheStatsgetRatio in interface NearCacheStatspublic void setOwnedEntryMemoryCost(long ownedEntryMemoryCost)
public void incrementMisses()
public void incrementHits()
public 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.