com.hazelcast.impl.monitor
Class LocalMapStatsImpl

java.lang.Object
  extended by com.hazelcast.impl.monitor.LocalMapStatsImpl
All Implemented Interfaces:
LocalInstanceStats<LocalMapOperationStats>, LocalMapStats, DataSerializable, Serializable

public class LocalMapStatsImpl
extends Object
implements LocalMapStats

See Also:
Serialized Form

Constructor Summary
LocalMapStatsImpl()
           
 
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.
 T getOperationStats()
          Returns the operation stats for 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.
 void readData(DataInput in)
           
 void setBackupEntryCount(long backupEntryCount)
           
 void setBackupEntryMemoryCost(long backupEntryMemoryCost)
           
 void setCreationTime(long creationTime)
           
 void setDirtyEntryCount(long l)
           
 void setHits(long hits)
           
 void setLastAccessTime(long lastAccessTime)
           
 void setLastEvictionTime(long lastEvictionTime)
           
 void setLastUpdateTime(long lastUpdateTime)
           
 void setLockedEntryCount(long lockedEntryCount)
           
 void setLockWaitCount(long lockWaitCount)
           
 void setMarkedAsRemovedEntryCount(long markedAsRemovedEntryCount)
           
 void setMarkedAsRemovedMemoryCost(long markedAsRemovedMemoryCost)
           
 void setOperationStats(T operationStats)
           
 void setOwnedEntryCount(long ownedEntryCount)
           
 void setOwnedEntryMemoryCost(long ownedEntryMemoryCost)
           
 String toString()
           
 void writeData(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.hazelcast.monitor.LocalInstanceStats
getOperationStats
 

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)

getMarkedAsRemovedEntryCount

public long getMarkedAsRemovedEntryCount()
Description copied from interface: LocalMapStats
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.

Specified by:
getMarkedAsRemovedEntryCount in interface LocalMapStats
Returns:
number of entries marked as removed.

setMarkedAsRemovedEntryCount

public void setMarkedAsRemovedEntryCount(long markedAsRemovedEntryCount)

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)

getMarkedAsRemovedMemoryCost

public long getMarkedAsRemovedMemoryCost()
Description copied from interface: LocalMapStats
Returns memory cost (number of bytes) of marked as removed entries in this member.

Specified by:
getMarkedAsRemovedMemoryCost in interface LocalMapStats
Returns:
memory cost (number of bytes) of marked as removed entries.

setMarkedAsRemovedMemoryCost

public void setMarkedAsRemovedMemoryCost(long markedAsRemovedMemoryCost)

getCreationTime

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

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

setCreationTime

public void setCreationTime(long creationTime)

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)

getLastEvictionTime

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

Specified by:
getLastEvictionTime in interface LocalMapStats
Returns:
last eviction time.

setLastEvictionTime

public void setLastEvictionTime(long lastEvictionTime)

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)

getLockWaitCount

public long getLockWaitCount()
Description copied from interface: LocalMapStats
Returns the number of cluster-wide threads waiting to acquire locks for the locally owned keys.

Specified by:
getLockWaitCount in interface LocalMapStats
Returns:
number of threads waiting for locks.

setLockWaitCount

public void setLockWaitCount(long lockWaitCount)

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 l)

toString

public String toString()
Overrides:
toString in class Object

getOperationStats

public final T getOperationStats()
Description copied from interface: LocalInstanceStats
Returns the operation stats for this member.

Specified by:
getOperationStats in interface LocalInstanceStats<T extends LocalInstanceOperationStats>
Returns:
operation stats

setOperationStats

public final void setOperationStats(T operationStats)

writeData

public final void writeData(DataOutput out)
                     throws IOException
Specified by:
writeData in interface DataSerializable
Throws:
IOException

readData

public final void readData(DataInput in)
                    throws IOException
Specified by:
readData in interface DataSerializable
Throws:
IOException


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