com.hazelcast.impl.monitor
Class LocalAtomicNumberOperationStatsImpl

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

public class LocalAtomicNumberOperationStatsImpl
extends Object
implements LocalAtomicNumberOperationStats

See Also:
Serialized Form

Constructor Summary
LocalAtomicNumberOperationStatsImpl()
           
 
Method Summary
 long getNumberOfModifyOps()
          Returns the number of operations that modified the stored atomic value.
 long getNumberOfNonModifyOps()
          Returns the number of operations that did not modify the stored atomic value.
 long getPeriodEnd()
          Gets the end time of the period in milliseconds.
 long getPeriodStart()
          Gets the start time of the period in milliseconds.
 long getTotalAcquireLatency()
           
 long getTotalNonAcquireLatency()
           
 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

LocalAtomicNumberOperationStatsImpl

public LocalAtomicNumberOperationStatsImpl()
Method Detail

total

public long total()

getNumberOfModifyOps

public long getNumberOfModifyOps()
Description copied from interface: LocalAtomicNumberOperationStats
Returns the number of operations that modified the stored atomic value.

Specified by:
getNumberOfModifyOps in interface LocalAtomicNumberOperationStats
Returns:
number of modified operations

getNumberOfNonModifyOps

public long getNumberOfNonModifyOps()
Description copied from interface: LocalAtomicNumberOperationStats
Returns the number of operations that did not modify the stored atomic value.

Specified by:
getNumberOfNonModifyOps in interface LocalAtomicNumberOperationStats
Returns:
number of non-modified operations

getTotalAcquireLatency

public long getTotalAcquireLatency()

getTotalNonAcquireLatency

public long getTotalNonAcquireLatency()

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.