public class NearCacheStatsImpl extends Object implements NearCacheStats
STAT_NOT_AVAILABLE| Constructor and Description |
|---|
NearCacheStatsImpl() |
NearCacheStatsImpl(NearCacheStats nearCacheStats) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPersistence(long duration,
int writtenBytes,
int keyCount) |
void |
addPersistenceFailure(Throwable t) |
void |
decrementOwnedEntryCount() |
void |
decrementOwnedEntryMemoryCost(long ownedEntryMemoryCost) |
void |
fromJson(com.eclipsesource.json.JsonObject json) |
long |
getCreationTime()
Returns the creation time of this Near Cache on this member.
|
long |
getEvictions()
Returns the number of evictions of Near Cache entries owned by this member.
|
long |
getExpirations()
Returns the number of TTL and max-idle expirations of Near Cache entries owned by this member.
|
long |
getHits()
Returns the number of hits (reads) of Near Cache entries owned by this member.
|
long |
getLastPersistenceDuration()
Returns the duration in milliseconds of the last Near Cache key persistence (when the pre-load feature is enabled).
|
String |
getLastPersistenceFailure()
Returns the failure reason of the last Near Cache persistence (when the pre-load feature is enabled).
|
long |
getLastPersistenceKeyCount()
Returns the number of persisted keys of the last Near Cache key persistence (when the pre-load feature is enabled).
|
long |
getLastPersistenceTime()
Returns the timestamp of the last Near Cache key persistence (when the pre-load feature is enabled).
|
long |
getLastPersistenceWrittenBytes()
Returns the written bytes of the last Near Cache key persistence (when the pre-load feature is enabled).
|
long |
getMisses()
Returns the number of misses of Near Cache entries owned by this member.
|
long |
getOwnedEntryCount()
Returns the number of Near Cache entries owned by this member.
|
long |
getOwnedEntryMemoryCost()
Returns memory cost (number of bytes) of Near Cache entries owned by this member.
|
long |
getPersistenceCount()
Returns the number of Near Cache key persistences (when the pre-load feature is enabled).
|
double |
getRatio()
Returns the hit/miss ratio of Near Cache entries owned by this member.
|
void |
incrementEvictions() |
void |
incrementExpirations() |
void |
incrementHits() |
void |
incrementMisses() |
void |
incrementOwnedEntryCount() |
void |
incrementOwnedEntryMemoryCost(long ownedEntryMemoryCost) |
void |
setOwnedEntryCount(long ownedEntryCount) |
void |
setOwnedEntryMemoryCost(long ownedEntryMemoryCost) |
com.eclipsesource.json.JsonObject |
toJson() |
String |
toString() |
public NearCacheStatsImpl()
public NearCacheStatsImpl(NearCacheStats nearCacheStats)
public long getCreationTime()
NearCacheStatsgetCreationTime in interface LocalInstanceStatsgetCreationTime in interface NearCacheStatspublic long getOwnedEntryCount()
NearCacheStatsgetOwnedEntryCount in interface NearCacheStatspublic void setOwnedEntryCount(long ownedEntryCount)
public void incrementOwnedEntryCount()
public void decrementOwnedEntryCount()
public long getOwnedEntryMemoryCost()
NearCacheStatsgetOwnedEntryMemoryCost in interface NearCacheStatspublic void setOwnedEntryMemoryCost(long ownedEntryMemoryCost)
public void incrementOwnedEntryMemoryCost(long ownedEntryMemoryCost)
public void decrementOwnedEntryMemoryCost(long ownedEntryMemoryCost)
public long getHits()
NearCacheStatsgetHits in interface NearCacheStatspublic void incrementHits()
public long getMisses()
NearCacheStatsgetMisses in interface NearCacheStatspublic void incrementMisses()
public double getRatio()
NearCacheStatsgetRatio in interface NearCacheStatspublic long getEvictions()
NearCacheStatsgetEvictions in interface NearCacheStatspublic void incrementEvictions()
public long getExpirations()
NearCacheStatsgetExpirations in interface NearCacheStatspublic void incrementExpirations()
public long getPersistenceCount()
NearCacheStatsgetPersistenceCount in interface NearCacheStatspublic void addPersistence(long duration,
int writtenBytes,
int keyCount)
public void addPersistenceFailure(Throwable t)
public long getLastPersistenceTime()
NearCacheStatsgetLastPersistenceTime in interface NearCacheStatspublic long getLastPersistenceDuration()
NearCacheStatsgetLastPersistenceDuration in interface NearCacheStatspublic long getLastPersistenceWrittenBytes()
NearCacheStatsgetLastPersistenceWrittenBytes in interface NearCacheStatspublic long getLastPersistenceKeyCount()
NearCacheStatsgetLastPersistenceKeyCount in interface NearCacheStatspublic String getLastPersistenceFailure()
NearCacheStatsgetLastPersistenceFailure in interface NearCacheStatspublic com.eclipsesource.json.JsonObject toJson()
toJson in interface JsonSerializablepublic void fromJson(com.eclipsesource.json.JsonObject json)
fromJson in interface JsonSerializableCopyright © 2017 Hazelcast, Inc.. All Rights Reserved.