com.hazelcast.impl.monitor
Class LocalQueueOperationStatsImpl

java.lang.Object
  extended by com.hazelcast.impl.monitor.LocalQueueOperationStatsImpl
All Implemented Interfaces:
LocalInstanceOperationStats, LocalQueueOperationStats, DataSerializable, Serializable

public class LocalQueueOperationStatsImpl
extends Object
implements LocalQueueOperationStats

See Also:
Serialized Form

Constructor Summary
LocalQueueOperationStatsImpl()
           
 
Method Summary
 long getNumberOfEmptyPolls()
          Returns number of null returning poll operations.
 long getNumberOfEvents()
           
 long getNumberOfOffers()
          Returns the number of offer/put/add operations.
 long getNumberOfOtherOperations()
           
 long getNumberOfPolls()
          Returns the number of poll/take/remove operations.
 long getNumberOfRejectedOffers()
          Returns the number of rejected offers.
 long getPeriodEnd()
          Gets the end time of the period in milliseconds.
 long getPeriodStart()
          Gets the start time of the period in milliseconds.
 void readData(DataInput in)
           
 String toString()
           
 long total()
           
 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.LocalInstanceOperationStats
getPeriodEnd, getPeriodStart
 
Methods inherited from interface com.hazelcast.nio.DataSerializable
readData, writeData
 

Constructor Detail

LocalQueueOperationStatsImpl

public LocalQueueOperationStatsImpl()
Method Detail

total

public long total()

getNumberOfOffers

public long getNumberOfOffers()
Description copied from interface: LocalQueueOperationStats
Returns the number of offer/put/add operations. Offers returning false will be included. #getNumberOfRejectedOffers can be used to get the rejected offers.

Specified by:
getNumberOfOffers in interface LocalQueueOperationStats
Returns:
number offer/put/add operations

getNumberOfRejectedOffers

public long getNumberOfRejectedOffers()
Description copied from interface: LocalQueueOperationStats
Returns the number of rejected offers. Offer can be rejected because of max-size limit on the queue.

Specified by:
getNumberOfRejectedOffers in interface LocalQueueOperationStats
Returns:
number of rejected offers.

getNumberOfPolls

public long getNumberOfPolls()
Description copied from interface: LocalQueueOperationStats
Returns the number of poll/take/remove operations. Polls returning null (empty) will be included. #getNumberOfEmptyPolls can be used to get the number of polls returned null.

Specified by:
getNumberOfPolls in interface LocalQueueOperationStats
Returns:
number of poll/take/remove operations.

getNumberOfEmptyPolls

public long getNumberOfEmptyPolls()
Description copied from interface: LocalQueueOperationStats
Returns number of null returning poll operations. Poll operation might return null, if the queue is empty.

Specified by:
getNumberOfEmptyPolls in interface LocalQueueOperationStats
Returns:
number of null returning poll operations.

getNumberOfOtherOperations

public long getNumberOfOtherOperations()

getNumberOfEvents

public long getNumberOfEvents()

toString

public String toString()
Overrides:
toString in class Object

getPeriodStart

public final long getPeriodStart()
Description copied from interface: LocalInstanceOperationStats
Gets the start time of the period in milliseconds.

Specified by:
getPeriodStart in interface LocalInstanceOperationStats
Returns:
start time in milliseconds.

getPeriodEnd

public final long getPeriodEnd()
Description copied from interface: LocalInstanceOperationStats
Gets the end time of the period in milliseconds.

Specified by:
getPeriodEnd in interface LocalInstanceOperationStats
Returns:
end time in milliseconds.

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.