public class LocalMapStatsImpl extends Object implements LocalMapStats
LocalMapStatsSTAT_NOT_AVAILABLE| Constructor and Description |
|---|
LocalMapStatsImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
fromJson(JsonObject json)
Extracts the state from the given
json object and mutates the
state of this object. |
int |
getBackupCount()
Returns the number of backups per entry.
|
long |
getBackupEntryCount()
Returns the number of backup entries hold by this member.
|
long |
getBackupEntryMemoryCost()
Returns memory cost (number of bytes) of backup entries in this member.
|
long |
getCreationTime()
Returns the creation time of this map on this member.
|
long |
getDirtyEntryCount()
Returns the number of entries that the member owns and are dirty (updated but not persisted yet).
|
long |
getEventOperationCount()
Returns the number of Events Received
|
long |
getGetOperationCount()
Returns the number of get operations
|
long |
getHeapCost()
Cost of map & Near Cache & backup & Merkle trees in bytes
|
long |
getHits()
Returns the number of hits (reads) of locally owned entries, including those
which are no longer in the map (for example, may have been evicted).
|
long |
getIndexedQueryCount()
Returns the total number of indexed queries performed on the map.
|
Map<String,LocalIndexStats> |
getIndexStats()
Returns the per-index statistics map keyed by the index name.
|
long |
getLastAccessTime()
Returns the last access (read) time of the locally owned entries.
|
long |
getLastUpdateTime()
Returns the last update time of the locally owned entries.
|
long |
getLockedEntryCount()
Returns the number of currently locked keys.
|
long |
getMaxGetLatency()
Returns the maximum latency of get operations.
|
long |
getMaxPutLatency()
Returns the maximum latency of put operations.
|
long |
getMaxRemoveLatency()
Returns the maximum latency of remove operations.
|
long |
getMerkleTreesCost()
Returns the heap cost of the Merkle trees
|
NearCacheStats |
getNearCacheStats()
Returns statistics related to the Near Cache.
|
long |
getOtherOperationCount()
Returns the total number of Other Operations
|
long |
getOwnedEntryCount()
Returns the number of entries owned by this member.
|
long |
getOwnedEntryMemoryCost()
Returns memory cost (number of bytes) of owned entries in this member.
|
long |
getPutOperationCount()
Returns the number of put operations
|
long |
getQueryCount()
Returns the total number of queries performed on the map.
|
long |
getRemoveOperationCount()
Returns the number of Remove operations
|
long |
getTotalGetLatency()
Returns the total latency of get operations.
|
long |
getTotalPutLatency()
Returns the total latency of put operations.
|
long |
getTotalRemoveLatency()
Returns the total latency of remove operations.
|
void |
incrementGetLatencyNanos(long latencyNanos) |
void |
incrementGetLatencyNanos(long delta,
long latencyNanos) |
void |
incrementOtherOperations() |
void |
incrementPutLatencyNanos(long latencyNanos) |
void |
incrementPutLatencyNanos(long delta,
long latencyNanos) |
void |
incrementReceivedEvents() |
void |
incrementRemoveLatencyNanos(long latencyNanos) |
void |
setBackupCount(int backupCount) |
void |
setBackupEntryCount(long backupEntryCount) |
void |
setBackupEntryMemoryCost(long backupEntryMemoryCost) |
void |
setDirtyEntryCount(long dirtyEntryCount) |
void |
setHeapCost(long heapCost) |
void |
setHits(long hits) |
void |
setIndexedQueryCount(long indexedQueryCount)
Sets the indexed query count of this stats to the given indexed query
count value.
|
void |
setIndexStats(Map<String,LocalIndexStatsImpl> indexStats)
Sets the per-index stats of this map stats to the given per-index stats.
|
void |
setLastAccessTime(long lastAccessTime) |
void |
setLastUpdateTime(long lastUpdateTime) |
void |
setLockedEntryCount(long lockedEntryCount) |
void |
setMerkleTreesCost(long merkleTreeCost) |
void |
setNearCacheStats(NearCacheStats nearCacheStats) |
void |
setOwnedEntryCount(long ownedEntryCount) |
void |
setOwnedEntryMemoryCost(long ownedEntryMemoryCost) |
void |
setQueryCount(long queryCount)
Sets the query count of this stats to the given query count value.
|
JsonObject |
toJson()
Serializes state represented by this object into a
JsonObject. |
String |
toString() |
long |
total()
Returns the total number of total operations
|
void |
updateIndexStats(Map<String,OnDemandIndexStats> freshIndexStats) |
public long getOwnedEntryCount()
LocalMapStatsgetOwnedEntryCount in interface LocalMapStatspublic void setOwnedEntryCount(long ownedEntryCount)
public long getBackupEntryCount()
LocalMapStatsgetBackupEntryCount in interface LocalMapStatspublic void setBackupEntryCount(long backupEntryCount)
public int getBackupCount()
LocalMapStatsgetBackupCount in interface LocalMapStatspublic void setBackupCount(int backupCount)
public long getOwnedEntryMemoryCost()
LocalMapStatsgetOwnedEntryMemoryCost in interface LocalMapStatspublic void setOwnedEntryMemoryCost(long ownedEntryMemoryCost)
public long getBackupEntryMemoryCost()
LocalMapStatsgetBackupEntryMemoryCost in interface LocalMapStatspublic void setBackupEntryMemoryCost(long backupEntryMemoryCost)
public long getCreationTime()
LocalMapStatsgetCreationTime in interface LocalInstanceStatsgetCreationTime in interface LocalMapStatspublic long getLastAccessTime()
LocalMapStatsgetLastAccessTime in interface LocalMapStatspublic void setLastAccessTime(long lastAccessTime)
public long getLastUpdateTime()
LocalMapStatsgetLastUpdateTime in interface LocalMapStatspublic void setLastUpdateTime(long lastUpdateTime)
public long getHits()
LocalMapStatsThe number of hits may be inaccurate after a partition is migrated to a new owner member.
getHits in interface LocalMapStatspublic void setHits(long hits)
public long getLockedEntryCount()
LocalMapStatsgetLockedEntryCount in interface LocalMapStatspublic void setLockedEntryCount(long lockedEntryCount)
public long getDirtyEntryCount()
LocalMapStatsgetDirtyEntryCount in interface LocalMapStatspublic void setDirtyEntryCount(long dirtyEntryCount)
public long getPutOperationCount()
LocalMapStatsgetPutOperationCount in interface LocalMapStatspublic long getGetOperationCount()
LocalMapStatsgetGetOperationCount in interface LocalMapStatspublic long getRemoveOperationCount()
LocalMapStatsgetRemoveOperationCount in interface LocalMapStatspublic long getTotalPutLatency()
LocalMapStatsgetTotalPutLatency in interface LocalMapStatspublic long getTotalGetLatency()
LocalMapStatsgetTotalGetLatency in interface LocalMapStatspublic long getTotalRemoveLatency()
LocalMapStatsgetTotalRemoveLatency in interface LocalMapStatspublic long getMaxPutLatency()
LocalMapStatsgetMaxPutLatency in interface LocalMapStatspublic long getMaxGetLatency()
LocalMapStatsgetMaxGetLatency in interface LocalMapStatspublic long getMaxRemoveLatency()
LocalMapStatsgetMaxRemoveLatency in interface LocalMapStatspublic long getEventOperationCount()
LocalMapStatsgetEventOperationCount in interface LocalMapStatspublic long getOtherOperationCount()
LocalMapStatsgetOtherOperationCount in interface LocalMapStatspublic long total()
LocalMapStatstotal in interface LocalMapStatspublic long getHeapCost()
LocalMapStats
When InMemoryFormat.OBJECT is used, the heapcost is zero.
getHeapCost in interface LocalMapStatspublic void setHeapCost(long heapCost)
public long getMerkleTreesCost()
LocalMapStatsgetMerkleTreesCost in interface LocalMapStatspublic void setMerkleTreesCost(long merkleTreeCost)
public NearCacheStats getNearCacheStats()
LocalMapStatsgetNearCacheStats in interface LocalMapStatspublic void setNearCacheStats(NearCacheStats nearCacheStats)
public long getQueryCount()
LocalMapStatsThe returned value includes queries processed with and without indexes.
getQueryCount in interface LocalMapStatsLocalMapStats.getIndexedQueryCount()public void setQueryCount(long queryCount)
queryCount - the query count value to set.public long getIndexedQueryCount()
LocalMapStats
The returned value includes only queries processed using indexes. If
there are no indexes associated with the map, the returned value is
0.
getIndexedQueryCount in interface LocalMapStatsLocalMapStats.getQueryCount()public void setIndexedQueryCount(long indexedQueryCount)
indexedQueryCount - the indexed query count value to set.public Map<String,LocalIndexStats> getIndexStats()
LocalMapStatsgetIndexStats in interface LocalMapStatspublic void setIndexStats(Map<String,LocalIndexStatsImpl> indexStats)
indexStats - the per-index stats to set.public void incrementPutLatencyNanos(long latencyNanos)
public void incrementPutLatencyNanos(long delta,
long latencyNanos)
public void incrementGetLatencyNanos(long latencyNanos)
public void incrementGetLatencyNanos(long delta,
long latencyNanos)
public void incrementRemoveLatencyNanos(long latencyNanos)
public void incrementOtherOperations()
public void incrementReceivedEvents()
public void updateIndexStats(Map<String,OnDemandIndexStats> freshIndexStats)
public 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 © 2021 Hazelcast, Inc.. All Rights Reserved.