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(JsonObject json)
Extracts the state from the given
json object and mutates the
state of this object. |
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 |
getInvalidationRequests() |
long |
getInvalidations()
Returns the number of invalidations 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 |
incrementInvalidationRequests() |
void |
incrementInvalidations() |
void |
incrementInvalidations(long delta) |
void |
incrementMisses() |
void |
incrementOwnedEntryCount() |
void |
incrementOwnedEntryMemoryCost(long ownedEntryMemoryCost) |
void |
resetInvalidationEvents() |
void |
setOwnedEntryCount(long ownedEntryCount) |
void |
setOwnedEntryMemoryCost(long ownedEntryMemoryCost) |
JsonObject |
toJson()
Serializes state represented by this object into a
JsonObject. |
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 getInvalidations()
NearCacheStatsgetInvalidations in interface NearCacheStatspublic void incrementInvalidations()
public void incrementInvalidations(long delta)
public long getInvalidationRequests()
public void incrementInvalidationRequests()
public void resetInvalidationEvents()
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 JsonObject toJson()
JsonSerializableJsonObject.toJson in interface JsonSerializablepublic void fromJson(JsonObject json)
JsonSerializablejson object and mutates the
state of this object.fromJson in interface JsonSerializablejson - the JSON object carrying state for this objectCopyright © 2019 Hazelcast, Inc.. All Rights Reserved.