com.hazelcast.monitor
Interface LocalMapStats

All Superinterfaces:
LocalInstanceStats<LocalMapOperationStats>
All Known Implementing Classes:
LocalMapStatsImpl

public interface LocalMapStats
extends LocalInstanceStats<LocalMapOperationStats>

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.

When an entry is removed, it is not erased from the map immediately. Hazelcast will mark it as removed and erase it couple of seconds later for correct versioning of backups.


Method Summary
 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 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 getLastEvictionTime()
          Returns the last eviction 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 getLockWaitCount()
          Returns the number of cluster-wide threads waiting to acquire locks for the locally owned keys.
 long getMarkedAsRemovedEntryCount()
          Returns the number of marked as removed entries in this member.
 long getMarkedAsRemovedMemoryCost()
          Returns memory cost (number of bytes) of marked as removed entries in this member.
 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.
 
Methods inherited from interface com.hazelcast.monitor.LocalInstanceStats
getOperationStats
 

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.

getMarkedAsRemovedEntryCount

long getMarkedAsRemovedEntryCount()
Returns the number of marked as removed entries in this member.

When an entry is removed, it is not erased from the map immediately. Hazelcast will mark it as removed and erase it couple of seconds later for correct versioning of backups.

Returns:
number of entries marked as removed.

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.

getMarkedAsRemovedMemoryCost

long getMarkedAsRemovedMemoryCost()
Returns memory cost (number of bytes) of marked as removed entries in this member.

Returns:
memory cost (number of bytes) of marked as removed entries.

getCreationTime

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

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.

getLastEvictionTime

long getLastEvictionTime()
Returns the last eviction time of the locally owned entries.

Returns:
last eviction 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.

getLockWaitCount

long getLockWaitCount()
Returns the number of cluster-wide threads waiting to acquire locks for the locally owned keys.

Returns:
number of threads waiting for locks.

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:


Copyright © 2008-2012 Hazel Ltd. All Rights Reserved.