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) |
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() |
String |
toString() |
public NearCacheStatsImpl()
public NearCacheStatsImpl(NearCacheStats nearCacheStats)
public long getCreationTime()
NearCacheStats
getCreationTime
in interface LocalInstanceStats
getCreationTime
in interface NearCacheStats
public long getOwnedEntryCount()
NearCacheStats
getOwnedEntryCount
in interface NearCacheStats
public void setOwnedEntryCount(long ownedEntryCount)
public void incrementOwnedEntryCount()
public void decrementOwnedEntryCount()
public long getOwnedEntryMemoryCost()
NearCacheStats
getOwnedEntryMemoryCost
in interface NearCacheStats
public void setOwnedEntryMemoryCost(long ownedEntryMemoryCost)
public void incrementOwnedEntryMemoryCost(long ownedEntryMemoryCost)
public void decrementOwnedEntryMemoryCost(long ownedEntryMemoryCost)
public long getHits()
NearCacheStats
getHits
in interface NearCacheStats
public void incrementHits()
public long getMisses()
NearCacheStats
getMisses
in interface NearCacheStats
public void incrementMisses()
public double getRatio()
NearCacheStats
getRatio
in interface NearCacheStats
public long getEvictions()
NearCacheStats
getEvictions
in interface NearCacheStats
public void incrementEvictions()
public long getExpirations()
NearCacheStats
getExpirations
in interface NearCacheStats
public void incrementExpirations()
public long getInvalidations()
NearCacheStats
getInvalidations
in interface NearCacheStats
public void incrementInvalidations()
public void incrementInvalidations(long delta)
public long getInvalidationRequests()
public void incrementInvalidationRequests()
public void resetInvalidationEvents()
public long getPersistenceCount()
NearCacheStats
getPersistenceCount
in interface NearCacheStats
public void addPersistence(long duration, int writtenBytes, int keyCount)
public void addPersistenceFailure(Throwable t)
public long getLastPersistenceTime()
NearCacheStats
getLastPersistenceTime
in interface NearCacheStats
public long getLastPersistenceDuration()
NearCacheStats
getLastPersistenceDuration
in interface NearCacheStats
public long getLastPersistenceWrittenBytes()
NearCacheStats
getLastPersistenceWrittenBytes
in interface NearCacheStats
public long getLastPersistenceKeyCount()
NearCacheStats
getLastPersistenceKeyCount
in interface NearCacheStats
public String getLastPersistenceFailure()
NearCacheStats
getLastPersistenceFailure
in interface NearCacheStats
public JsonObject toJson()
toJson
in interface JsonSerializable
public void fromJson(JsonObject json)
fromJson
in interface JsonSerializable
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.