public class LocalMapStatsImpl extends Object implements LocalMapStats, IdentifiedDataSerializable
LocalMapStats| Constructor and Description |
|---|
LocalMapStatsImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
fromJson(com.eclipsesource.json.JsonObject json) |
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
|
int |
getFactoryId()
Returns DataSerializableFactory factory id for this class.
|
long |
getGetOperationCount()
Returns the number of get operations
|
long |
getHeapCost()
Cost of map & near cache & backup in bytes
todo in object mode object size is zero.
|
long |
getHits()
Returns the number of hits (reads) of the locally owned entries.
|
int |
getId()
Returns type identifier for this class.
|
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 locally owned 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.
|
NearCacheStatsImpl |
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 |
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 |
incrementBackupEntryCount(long backupEntryCount) |
void |
incrementBackupEntryMemoryCost(long backupEntryMemoryCost) |
void |
incrementDirtyEntryCount(long dirtyEntryCount) |
void |
incrementGets(long latency) |
void |
incrementHeapCost(long heapCost) |
void |
incrementHits(long hits) |
void |
incrementLockedEntryCount(long lockedEntryCount) |
void |
incrementOtherOperations() |
void |
incrementOwnedEntryCount(long ownedEntryCount) |
void |
incrementOwnedEntryMemoryCost(long ownedEntryMemoryCost) |
void |
incrementPuts(long latency) |
void |
incrementReceivedEvents() |
void |
incrementRemoves(long latency) |
void |
init()
Only init these fields for every
LocalMapStatsProvider.createLocalMapStats(java.lang.String)
call since they represent current map state. |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
void |
setBackupCount(int backupCount) |
void |
setBackupEntryCount(long backupEntryCount) |
void |
setHits(long hits) |
void |
setLastAccessTime(long lastAccessTime) |
void |
setLastUpdateTime(long lastUpdateTime) |
void |
setLockedEntryCount(long lockedEntryCount) |
void |
setNearCacheStats(NearCacheStatsImpl nearCacheStats) |
void |
setOwnedEntryCount(long ownedEntryCount) |
com.eclipsesource.json.JsonObject |
toJson() |
String |
toString() |
long |
total()
Returns the total number of total operations
|
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public void init()
LocalMapStatsProvider.createLocalMapStats(java.lang.String)
call since they represent current map state.
However other fields hold historical data from the creation of a map like #putCount#getCount
and they should not be touched here.public void writeData(ObjectDataOutput out) throws IOException
DataSerializablewriteData in interface DataSerializableout - outputIOExceptionpublic void readData(ObjectDataInput in) throws IOException
DataSerializablereadData in interface DataSerializablein - inputIOExceptionpublic long getOwnedEntryCount()
LocalMapStatsgetOwnedEntryCount in interface LocalMapStatspublic void setOwnedEntryCount(long ownedEntryCount)
public void incrementOwnedEntryCount(long ownedEntryCount)
public long getBackupEntryCount()
LocalMapStatsgetBackupEntryCount in interface LocalMapStatspublic void setBackupEntryCount(long backupEntryCount)
public void incrementBackupEntryCount(long backupEntryCount)
public int getBackupCount()
LocalMapStatsgetBackupCount in interface LocalMapStatspublic void setBackupCount(int backupCount)
public long getOwnedEntryMemoryCost()
LocalMapStatsgetOwnedEntryMemoryCost in interface LocalMapStatspublic void incrementOwnedEntryMemoryCost(long ownedEntryMemoryCost)
public long getBackupEntryMemoryCost()
LocalMapStatsgetBackupEntryMemoryCost in interface LocalMapStatspublic void incrementBackupEntryMemoryCost(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()
LocalMapStatsgetHits in interface LocalMapStatspublic void setHits(long hits)
public void incrementHits(long hits)
public long getLockedEntryCount()
LocalMapStatsgetLockedEntryCount in interface LocalMapStatspublic void setLockedEntryCount(long lockedEntryCount)
public void incrementLockedEntryCount(long lockedEntryCount)
public long getDirtyEntryCount()
LocalMapStatsgetDirtyEntryCount in interface LocalMapStatspublic void incrementDirtyEntryCount(long dirtyEntryCount)
public long total()
LocalMapStatstotal in interface LocalMapStatspublic long getPutOperationCount()
LocalMapStatsgetPutOperationCount in interface LocalMapStatspublic void incrementPuts(long latency)
public long getGetOperationCount()
LocalMapStatsgetGetOperationCount in interface LocalMapStatspublic void incrementGets(long latency)
public long getRemoveOperationCount()
LocalMapStatsgetRemoveOperationCount in interface LocalMapStatspublic void incrementRemoves(long latency)
public 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 getOtherOperationCount()
LocalMapStatsgetOtherOperationCount in interface LocalMapStatspublic void incrementOtherOperations()
public long getEventOperationCount()
LocalMapStatsgetEventOperationCount in interface LocalMapStatspublic void incrementReceivedEvents()
public void incrementHeapCost(long heapCost)
public long getHeapCost()
LocalMapStatsgetHeapCost in interface LocalMapStatspublic NearCacheStatsImpl getNearCacheStats()
LocalMapStatsgetNearCacheStats in interface LocalMapStatspublic void setNearCacheStats(NearCacheStatsImpl nearCacheStats)
public int getFactoryId()
IdentifiedDataSerializablegetFactoryId in interface IdentifiedDataSerializablepublic int getId()
IdentifiedDataSerializablegetId in interface IdentifiedDataSerializablepublic 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.