com.hazelcast.monitor.impl
Class LocalMapStatsImpl

java.lang.Object
  extended by com.hazelcast.monitor.impl.LocalMapStatsImpl
All Implemented Interfaces:
JsonSerializable, LocalInstanceStats, LocalMapStats
Direct Known Subclasses:
LocalMultiMapStatsImpl

public class LocalMapStatsImpl
extends Object
implements LocalMapStats

Default implementation of LocalMapStats


Field Summary
 
Fields inherited from interface com.hazelcast.monitor.LocalInstanceStats
STAT_NOT_AVAILABLE
 
Constructor Summary
LocalMapStatsImpl()
           
 
Method Summary
 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
 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.
 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 incrementGets(long latency)
           
 void incrementOtherOperations()
           
 void incrementPuts(long latency)
           
 void incrementReceivedEvents()
           
 void incrementRemoves(long latency)
           
 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 setLastAccessTime(long lastAccessTime)
           
 void setLastUpdateTime(long lastUpdateTime)
           
 void setLockedEntryCount(long lockedEntryCount)
           
 void setNearCacheStats(NearCacheStatsImpl nearCacheStats)
           
 void setOwnedEntryCount(long ownedEntryCount)
           
 void setOwnedEntryMemoryCost(long ownedEntryMemoryCost)
           
 com.eclipsesource.json.JsonObject toJson()
           
 String toString()
           
 long total()
          Returns the total number of total operations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocalMapStatsImpl

public LocalMapStatsImpl()
Method Detail

getOwnedEntryCount

public long getOwnedEntryCount()
Description copied from interface: LocalMapStats
Returns the number of entries owned by this member.

Specified by:
getOwnedEntryCount in interface LocalMapStats
Returns:
number of entries owned by this member.

setOwnedEntryCount

public void setOwnedEntryCount(long ownedEntryCount)

getBackupEntryCount

public long getBackupEntryCount()
Description copied from interface: LocalMapStats
Returns the number of backup entries hold by this member.

Specified by:
getBackupEntryCount in interface LocalMapStats
Returns:
number of backup entries hold by this member.

setBackupEntryCount

public void setBackupEntryCount(long backupEntryCount)

getBackupCount

public int getBackupCount()
Description copied from interface: LocalMapStats
Returns the number of backups per entry.

Specified by:
getBackupCount in interface LocalMapStats
Returns:
the number of backups per entry.

setBackupCount

public void setBackupCount(int backupCount)

getOwnedEntryMemoryCost

public long getOwnedEntryMemoryCost()
Description copied from interface: LocalMapStats
Returns memory cost (number of bytes) of owned entries in this member.

Specified by:
getOwnedEntryMemoryCost in interface LocalMapStats
Returns:
memory cost (number of bytes) of owned entries in this member.

setOwnedEntryMemoryCost

public void setOwnedEntryMemoryCost(long ownedEntryMemoryCost)

getBackupEntryMemoryCost

public long getBackupEntryMemoryCost()
Description copied from interface: LocalMapStats
Returns memory cost (number of bytes) of backup entries in this member.

Specified by:
getBackupEntryMemoryCost in interface LocalMapStats
Returns:
memory cost (number of bytes) of backup entries in this member.

setBackupEntryMemoryCost

public void setBackupEntryMemoryCost(long backupEntryMemoryCost)

getCreationTime

public long getCreationTime()
Description copied from interface: LocalMapStats
Returns the creation time of this map on this member.

Specified by:
getCreationTime in interface LocalInstanceStats
Specified by:
getCreationTime in interface LocalMapStats
Returns:
creation time of this map on this member.

getLastAccessTime

public long getLastAccessTime()
Description copied from interface: LocalMapStats
Returns the last access (read) time of the locally owned entries.

Specified by:
getLastAccessTime in interface LocalMapStats
Returns:
last access time.

setLastAccessTime

public void setLastAccessTime(long lastAccessTime)

getLastUpdateTime

public long getLastUpdateTime()
Description copied from interface: LocalMapStats
Returns the last update time of the locally owned entries.

Specified by:
getLastUpdateTime in interface LocalMapStats
Returns:
last update time.

setLastUpdateTime

public void setLastUpdateTime(long lastUpdateTime)

getHits

public long getHits()
Description copied from interface: LocalMapStats
Returns the number of hits (reads) of the locally owned entries.

Specified by:
getHits in interface LocalMapStats
Returns:
number of hits (reads).

setHits

public void setHits(long hits)

getLockedEntryCount

public long getLockedEntryCount()
Description copied from interface: LocalMapStats
Returns the number of currently locked locally owned keys.

Specified by:
getLockedEntryCount in interface LocalMapStats
Returns:
number of locked entries.

setLockedEntryCount

public void setLockedEntryCount(long lockedEntryCount)

getDirtyEntryCount

public long getDirtyEntryCount()
Description copied from interface: LocalMapStats
Returns the number of entries that the member owns and are dirty (updated but not persisted yet). dirty entry count is meaningful when there is a persistence defined.

Specified by:
getDirtyEntryCount in interface LocalMapStats
Returns:

setDirtyEntryCount

public void setDirtyEntryCount(long dirtyEntryCount)

total

public long total()
Description copied from interface: LocalMapStats
Returns the total number of total operations

Specified by:
total in interface LocalMapStats
Returns:
number of total operations

getPutOperationCount

public long getPutOperationCount()
Description copied from interface: LocalMapStats
Returns the number of put operations

Specified by:
getPutOperationCount in interface LocalMapStats
Returns:
number of put operations

incrementPuts

public void incrementPuts(long latency)

getGetOperationCount

public long getGetOperationCount()
Description copied from interface: LocalMapStats
Returns the number of get operations

Specified by:
getGetOperationCount in interface LocalMapStats
Returns:
number of get operations

incrementGets

public void incrementGets(long latency)

getRemoveOperationCount

public long getRemoveOperationCount()
Description copied from interface: LocalMapStats
Returns the number of Remove operations

Specified by:
getRemoveOperationCount in interface LocalMapStats
Returns:
number of remove operations

incrementRemoves

public void incrementRemoves(long latency)

getTotalPutLatency

public long getTotalPutLatency()
Description copied from interface: LocalMapStats
Returns the total latency of put operations. To get the average latency, divide to number of puts

Specified by:
getTotalPutLatency in interface LocalMapStats
Returns:

getTotalGetLatency

public long getTotalGetLatency()
Description copied from interface: LocalMapStats
Returns the total latency of get operations. To get the average latency, divide to number of gets

Specified by:
getTotalGetLatency in interface LocalMapStats
Returns:

getTotalRemoveLatency

public long getTotalRemoveLatency()
Description copied from interface: LocalMapStats
Returns the total latency of remove operations. To get the average latency, divide to number of gets

Specified by:
getTotalRemoveLatency in interface LocalMapStats
Returns:

getMaxPutLatency

public long getMaxPutLatency()
Description copied from interface: LocalMapStats
Returns the maximum latency of put operations.

Specified by:
getMaxPutLatency in interface LocalMapStats
Returns:

getMaxGetLatency

public long getMaxGetLatency()
Description copied from interface: LocalMapStats
Returns the maximum latency of get operations.

Specified by:
getMaxGetLatency in interface LocalMapStats
Returns:

getMaxRemoveLatency

public long getMaxRemoveLatency()
Description copied from interface: LocalMapStats
Returns the maximum latency of remove operations.

Specified by:
getMaxRemoveLatency in interface LocalMapStats
Returns:

getOtherOperationCount

public long getOtherOperationCount()
Description copied from interface: LocalMapStats
Returns the total number of Other Operations

Specified by:
getOtherOperationCount in interface LocalMapStats
Returns:
number of other operations

incrementOtherOperations

public void incrementOtherOperations()

getEventOperationCount

public long getEventOperationCount()
Description copied from interface: LocalMapStats
Returns the number of Events Received

Specified by:
getEventOperationCount in interface LocalMapStats
Returns:
number of events received

incrementReceivedEvents

public void incrementReceivedEvents()

getHeapCost

public long getHeapCost()
Description copied from interface: LocalMapStats
Cost of map & near cache & backup in bytes todo in object mode object size is zero.

Specified by:
getHeapCost in interface LocalMapStats
Returns:
heap cost

setHeapCost

public void setHeapCost(long heapCost)

getNearCacheStats

public NearCacheStatsImpl getNearCacheStats()
Description copied from interface: LocalMapStats
Returns statistics related to the Near Cache.

Specified by:
getNearCacheStats in interface LocalMapStats
Returns:
statistics object for the Near Cache

setNearCacheStats

public void setNearCacheStats(NearCacheStatsImpl nearCacheStats)

toJson

public com.eclipsesource.json.JsonObject toJson()
Specified by:
toJson in interface JsonSerializable

fromJson

public void fromJson(com.eclipsesource.json.JsonObject json)
Specified by:
fromJson in interface JsonSerializable

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.