com.hazelcast.impl.monitor
Class LocalQueueStatsImpl

java.lang.Object
  extended by com.hazelcast.impl.monitor.LocalQueueStatsImpl
All Implemented Interfaces:
LocalInstanceStats<LocalQueueOperationStats>, LocalQueueStats, DataSerializable, Serializable

public class LocalQueueStatsImpl
extends Object
implements LocalQueueStats, DataSerializable

See Also:
Serialized Form

Constructor Summary
LocalQueueStatsImpl()
           
LocalQueueStatsImpl(int ownedItemCount, int backupItemCount, long minAge, long maxAge, long aveAge)
           
 
Method Summary
 long getAveAge()
          Returns the average age of the items in this member.
 int getBackupItemCount()
          Returns the number of backup items in this member.
 long getMaxAge()
          Returns the max age of the items in this member.
 long getMinAge()
          Returns the min age of the items in this member.
 T getOperationStats()
          Returns the operation stats for this member.
 int getOwnedItemCount()
          Returns the number of owned items in this member.
 void readData(DataInput in)
           
 void setOperationStats(T operationStats)
           
 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
 
Methods inherited from interface com.hazelcast.nio.DataSerializable
readData, writeData
 

Constructor Detail

LocalQueueStatsImpl

public LocalQueueStatsImpl()

LocalQueueStatsImpl

public LocalQueueStatsImpl(int ownedItemCount,
                           int backupItemCount,
                           long minAge,
                           long maxAge,
                           long aveAge)
Method Detail

getOwnedItemCount

public int getOwnedItemCount()
Description copied from interface: LocalQueueStats
Returns the number of owned items in this member.

Specified by:
getOwnedItemCount in interface LocalQueueStats
Returns:
number of owned items.

getBackupItemCount

public int getBackupItemCount()
Description copied from interface: LocalQueueStats
Returns the number of backup items in this member.

Specified by:
getBackupItemCount in interface LocalQueueStats
Returns:
number of backup items.

getMaxAge

public long getMaxAge()
Description copied from interface: LocalQueueStats
Returns the max age of the items in this member.

Specified by:
getMaxAge in interface LocalQueueStats
Returns:
max age

getMinAge

public long getMinAge()
Description copied from interface: LocalQueueStats
Returns the min age of the items in this member.

Specified by:
getMinAge in interface LocalQueueStats
Returns:
min age

getAveAge

public long getAveAge()
Description copied from interface: LocalQueueStats
Returns the average age of the items in this member.

Specified by:
getAveAge in interface LocalQueueStats
Returns:
average age

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.