com.hazelcast.monitor
Interface LocalMapStats

All Superinterfaces:
JsonSerializable, LocalInstanceStats
All Known Subinterfaces:
LocalMultiMapStats, LocalReplicatedMapStats
All Known Implementing Classes:
LocalMapStatsImpl, LocalMultiMapStatsImpl, LocalReplicatedMapStatsImpl

public interface LocalMapStats
extends LocalInstanceStats

Local map statistics. As everything is partitioned in Hazelcast, each member owns 1/N (N being the number of members in the cluster) entries of a distributed map. Each member also holds backup entries of another member. LocalMapStats tells you the count of owned and backup entries besides their size in memory.


Field Summary
 
Fields inherited from interface com.hazelcast.monitor.LocalInstanceStats
STAT_NOT_AVAILABLE
 
Method Summary
 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.
 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 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.
 long total()
          Returns the total number of total operations
 
Methods inherited from interface com.hazelcast.management.JsonSerializable
fromJson, toJson
 

Method Detail

getOwnedEntryCount

long getOwnedEntryCount()
Returns the number of entries owned by this member.

Returns:
number of entries owned by this member.

getBackupEntryCount

long getBackupEntryCount()
Returns the number of backup entries hold by this member.

Returns:
number of backup entries hold by this member.

getBackupCount

int getBackupCount()
Returns the number of backups per entry.

Returns:
the number of backups per entry.

getOwnedEntryMemoryCost

long getOwnedEntryMemoryCost()
Returns memory cost (number of bytes) of owned entries in this member.

Returns:
memory cost (number of bytes) of owned entries in this member.

getBackupEntryMemoryCost

long getBackupEntryMemoryCost()
Returns memory cost (number of bytes) of backup entries in this member.

Returns:
memory cost (number of bytes) of backup entries in this member.

getCreationTime

long getCreationTime()
Returns the creation time of this map on this member.

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

getLastAccessTime

long getLastAccessTime()
Returns the last access (read) time of the locally owned entries.

Returns:
last access time.

getLastUpdateTime

long getLastUpdateTime()
Returns the last update time of the locally owned entries.

Returns:
last update time.

getHits

long getHits()
Returns the number of hits (reads) of the locally owned entries.

Returns:
number of hits (reads).

getLockedEntryCount

long getLockedEntryCount()
Returns the number of currently locked locally owned keys.

Returns:
number of locked entries.

getDirtyEntryCount

long getDirtyEntryCount()
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.

Returns:

getPutOperationCount

long getPutOperationCount()
Returns the number of put operations

Returns:
number of put operations

getGetOperationCount

long getGetOperationCount()
Returns the number of get operations

Returns:
number of get operations

getRemoveOperationCount

long getRemoveOperationCount()
Returns the number of Remove operations

Returns:
number of remove operations

getTotalPutLatency

long getTotalPutLatency()
Returns the total latency of put operations. To get the average latency, divide to number of puts

Returns:

getTotalGetLatency

long getTotalGetLatency()
Returns the total latency of get operations. To get the average latency, divide to number of gets

Returns:

getTotalRemoveLatency

long getTotalRemoveLatency()
Returns the total latency of remove operations. To get the average latency, divide to number of gets

Returns:

getMaxPutLatency

long getMaxPutLatency()
Returns the maximum latency of put operations.

Returns:

getMaxGetLatency

long getMaxGetLatency()
Returns the maximum latency of get operations.

Returns:

getMaxRemoveLatency

long getMaxRemoveLatency()
Returns the maximum latency of remove operations.

Returns:

getEventOperationCount

long getEventOperationCount()
Returns the number of Events Received

Returns:
number of events received

getOtherOperationCount

long getOtherOperationCount()
Returns the total number of Other Operations

Returns:
number of other operations

total

long total()
Returns the total number of total operations

Returns:
number of total operations

getHeapCost

long getHeapCost()
Cost of map & near cache & backup in bytes todo in object mode object size is zero.

Returns:
heap cost

getNearCacheStats

NearCacheStats getNearCacheStats()
Returns statistics related to the Near Cache.

Returns:
statistics object for the Near Cache


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