com.hazelcast.monitor.impl
Class LocalQueueStatsImpl

java.lang.Object
  extended by com.hazelcast.monitor.impl.LocalQueueStatsImpl
All Implemented Interfaces:
JsonSerializable, LocalInstanceStats, LocalQueueStats

public class LocalQueueStatsImpl
extends Object
implements LocalQueueStats


Field Summary
 
Fields inherited from interface com.hazelcast.monitor.LocalInstanceStats
STAT_NOT_AVAILABLE
 
Constructor Summary
LocalQueueStatsImpl()
           
 
Method Summary
 void fromJson(com.eclipsesource.json.JsonObject json)
           
 long getAvgAge()
          Returns the average age of the items in this member.
 long getBackupItemCount()
          Returns the number of backup items in this member.
 long getCreationTime()
           
 long getEmptyPollOperationCount()
          Returns number of null returning poll operations.
 long getEventOperationCount()
          Returns number of event operations
 long getMaxAge()
          Returns the max age of the items in this member.
 long getMinAge()
          Returns the min age of the items in this member.
 long getOfferOperationCount()
          Returns the number of offer/put/add operations.
 long getOtherOperationsCount()
          Returns number of other operations
 long getOwnedItemCount()
          Returns the number of owned items in this member.
 long getPollOperationCount()
          Returns the number of poll/take/remove operations.
 long getRejectedOfferOperationCount()
          Returns the number of rejected offers.
 void incrementEmptyPolls()
           
 void incrementOffers()
           
 void incrementOtherOperations()
           
 void incrementPolls()
           
 void incrementReceivedEvents()
           
 void incrementRejectedOffers()
           
 void setAveAge(long aveAge)
           
 void setBackupItemCount(int backupItemCount)
           
 void setMaxAge(long maxAge)
           
 void setMinAge(long minAge)
           
 void setOwnedItemCount(int ownedItemCount)
           
 com.eclipsesource.json.JsonObject toJson()
           
 long total()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalQueueStatsImpl

public LocalQueueStatsImpl()
Method Detail

toJson

public com.eclipsesource.json.JsonObject toJson()
Specified by:
toJson in interface JsonSerializable

fromJson

public void fromJson(com.eclipsesource.json.JsonObject json)
Specified by:
fromJson in interface JsonSerializable

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

setMinAge

public void setMinAge(long minAge)

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

setMaxAge

public void setMaxAge(long maxAge)

getAvgAge

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

Specified by:
getAvgAge in interface LocalQueueStats
Returns:
average age

setAveAge

public void setAveAge(long aveAge)

getOwnedItemCount

public long 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.

setOwnedItemCount

public void setOwnedItemCount(int ownedItemCount)

getBackupItemCount

public long 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.

setBackupItemCount

public void setBackupItemCount(int backupItemCount)

getCreationTime

public long getCreationTime()
Specified by:
getCreationTime in interface LocalInstanceStats

total

public long total()

getOfferOperationCount

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

Specified by:
getOfferOperationCount in interface LocalQueueStats
Returns:
number offer/put/add operations

getRejectedOfferOperationCount

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

Specified by:
getRejectedOfferOperationCount in interface LocalQueueStats
Returns:
number of rejected offers.

getPollOperationCount

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

Specified by:
getPollOperationCount in interface LocalQueueStats
Returns:
number of poll/take/remove operations.

getEmptyPollOperationCount

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

Specified by:
getEmptyPollOperationCount in interface LocalQueueStats
Returns:
number of null returning poll operations.

getOtherOperationsCount

public long getOtherOperationsCount()
Description copied from interface: LocalQueueStats
Returns number of other operations

Specified by:
getOtherOperationsCount in interface LocalQueueStats
Returns:
number of other operations

incrementOtherOperations

public void incrementOtherOperations()

incrementOffers

public void incrementOffers()

incrementRejectedOffers

public void incrementRejectedOffers()

incrementPolls

public void incrementPolls()

incrementEmptyPolls

public void incrementEmptyPolls()

incrementReceivedEvents

public void incrementReceivedEvents()

getEventOperationCount

public long getEventOperationCount()
Description copied from interface: LocalQueueStats
Returns number of event operations

Specified by:
getEventOperationCount in interface LocalQueueStats
Returns:
number of event operations


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