com.hazelcast.impl.monitor
Class LocalLockOperationStatsImpl

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

public class LocalLockOperationStatsImpl
extends Object
implements LocalLockOperationStats

See Also:
Serialized Form

Constructor Summary
LocalLockOperationStatsImpl()
           
 
Method Summary
 long getNumberOfFailedLocks()
          Returns the number of failed lock operations.
 long getNumberOfLocks()
          Returns the number of lock operations.
 long getNumberOfUnlocks()
          Returns the number of unlock operations.
 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)
           
 long total()
          Returns the number of total operations.
 void writeData(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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

LocalLockOperationStatsImpl

public LocalLockOperationStatsImpl()
Method Detail

getNumberOfLocks

public long getNumberOfLocks()
Description copied from interface: LocalLockOperationStats
Returns the number of lock operations.

Specified by:
getNumberOfLocks in interface LocalLockOperationStats
Returns:
number of lock operations

getNumberOfUnlocks

public long getNumberOfUnlocks()
Description copied from interface: LocalLockOperationStats
Returns the number of unlock operations.

Specified by:
getNumberOfUnlocks in interface LocalLockOperationStats
Returns:
number of unlock operations

getNumberOfFailedLocks

public long getNumberOfFailedLocks()
Description copied from interface: LocalLockOperationStats
Returns the number of failed lock operations.

Specified by:
getNumberOfFailedLocks in interface LocalLockOperationStats
Returns:
number of failed lock operations

total

public long total()
Description copied from interface: LocalLockOperationStats
Returns the number of total operations.

Specified by:
total in interface LocalLockOperationStats
Returns:
number of total operations

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.