com.hazelcast.impl.monitor
Class LocalCountDownLatchOperationStatsImpl

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

public class LocalCountDownLatchOperationStatsImpl
extends Object
implements LocalCountDownLatchOperationStats

See Also:
Serialized Form

Constructor Summary
LocalCountDownLatchOperationStatsImpl()
           
 
Method Summary
 long getNumberOfAwaits()
          Returns the number of await operations in this period.
 long getNumberOfAwaitsReleased()
          Returns the number of awaits released in this period from gate openings.
 long getNumberOfCountDowns()
          Returns the number of countDown operations in this period.
 long getNumberOfGatesOpened()
          Returns the number of times the count reached zero from a countdown operation in this period.
 long getNumberOfOthers()
          Returns the number of operations other than await or countDown in this period.
 long getPeriodEnd()
          Gets the end time of the period in milliseconds.
 long getPeriodStart()
          Gets the start time of the period in milliseconds.
 long getTotalAwaitLatency()
          Returns the total latency of await operations in this period.
 long getTotalCountDownLatency()
          Returns the total latency of countdown operations in this period.
 long getTotalOtherLatency()
          Returns the total latency of operations other than await or countdown in this period.
 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

LocalCountDownLatchOperationStatsImpl

public LocalCountDownLatchOperationStatsImpl()
Method Detail

total

public long total()

getNumberOfAwaits

public long getNumberOfAwaits()
Description copied from interface: LocalCountDownLatchOperationStats
Returns the number of await operations in this period.

Specified by:
getNumberOfAwaits in interface LocalCountDownLatchOperationStats
Returns:
number of await operations

getNumberOfCountDowns

public long getNumberOfCountDowns()
Description copied from interface: LocalCountDownLatchOperationStats
Returns the number of countDown operations in this period.

Specified by:
getNumberOfCountDowns in interface LocalCountDownLatchOperationStats
Returns:
number of acquire operations

getNumberOfOthers

public long getNumberOfOthers()
Description copied from interface: LocalCountDownLatchOperationStats
Returns the number of operations other than await or countDown in this period.

Specified by:
getNumberOfOthers in interface LocalCountDownLatchOperationStats
Returns:
number of await operations

getTotalAwaitLatency

public long getTotalAwaitLatency()
Description copied from interface: LocalCountDownLatchOperationStats
Returns the total latency of await operations in this period.

To get the average latency, divide by the number of awaits.

Specified by:
getTotalAwaitLatency in interface LocalCountDownLatchOperationStats
Returns:
total latency of all await operations

getTotalCountDownLatency

public long getTotalCountDownLatency()
Description copied from interface: LocalCountDownLatchOperationStats
Returns the total latency of countdown operations in this period.

To get the average latency, divide by the number of countdowns.

Specified by:
getTotalCountDownLatency in interface LocalCountDownLatchOperationStats
Returns:
total latency of all countdown operations

getTotalOtherLatency

public long getTotalOtherLatency()
Description copied from interface: LocalCountDownLatchOperationStats
Returns the total latency of operations other than await or countdown in this period.

To get the average latency, divide by the number of others.

Specified by:
getTotalOtherLatency in interface LocalCountDownLatchOperationStats
Returns:
total latency of all await operations

getNumberOfAwaitsReleased

public long getNumberOfAwaitsReleased()
Description copied from interface: LocalCountDownLatchOperationStats
Returns the number of awaits released in this period from gate openings.

Specified by:
getNumberOfAwaitsReleased in interface LocalCountDownLatchOperationStats
Returns:
number of awaits released

getNumberOfGatesOpened

public long getNumberOfGatesOpened()
Description copied from interface: LocalCountDownLatchOperationStats
Returns the number of times the count reached zero from a countdown operation in this period.

Specified by:
getNumberOfGatesOpened in interface LocalCountDownLatchOperationStats
Returns:
number of attach operations

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.