com.hazelcast.impl.monitor
Class LocalSemaphoreOperationStatsImpl

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

public class LocalSemaphoreOperationStatsImpl
extends Object
implements LocalSemaphoreOperationStats

See Also:
Serialized Form

Constructor Summary
LocalSemaphoreOperationStatsImpl()
           
 
Method Summary
 long getNumberOfAcquireOps()
          Returns the total number of acquire operations.
 long getNumberOfAttachedPermits()
          Returns the number of permits attached.
 long getNumberOfDetachedPermits()
          Returns the number of permits detached.
 long getNumberOfNonAcquireOps()
          Returns the total number of non-acquire operations.
 long getNumberOfPermitsAcquired()
          Returns the number of permits acquired.
 long getNumberOfPermitsReduced()
           
 long getNumberOfPermitsReleased()
          Returns the number of permits released.
 long getNumberOfRejectedAcquires()
          Returns the total number of acquires operations that were rejected.
 long getPeriodEnd()
          Gets the end time of the period in milliseconds.
 long getPeriodStart()
          Gets the start time of the period in milliseconds.
 long getTotalAcquireLatency()
          Returns the total latency of put acquire in this period.
 long getTotalNonAcquireLatency()
          Returns the total latency of get operations 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

LocalSemaphoreOperationStatsImpl

public LocalSemaphoreOperationStatsImpl()
Method Detail

total

public long total()

getNumberOfAcquireOps

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

Specified by:
getNumberOfAcquireOps in interface LocalSemaphoreOperationStats
Returns:
number of acquire operations

getNumberOfNonAcquireOps

public long getNumberOfNonAcquireOps()
Description copied from interface: LocalSemaphoreOperationStats
Returns the total number of non-acquire operations.

Specified by:
getNumberOfNonAcquireOps in interface LocalSemaphoreOperationStats
Returns:
number of non-acquire operations

getTotalAcquireLatency

public long getTotalAcquireLatency()
Description copied from interface: LocalSemaphoreOperationStats
Returns the total latency of put acquire in this period.

To get the average latency, divide by the number of acquire operations.

Specified by:
getTotalAcquireLatency in interface LocalSemaphoreOperationStats
Returns:
total latency of all acquire operations

getTotalNonAcquireLatency

public long getTotalNonAcquireLatency()
Description copied from interface: LocalSemaphoreOperationStats
Returns the total latency of get operations in this period.

To get the average latency, divide by the number of non-acquire operations.

Specified by:
getTotalNonAcquireLatency in interface LocalSemaphoreOperationStats
Returns:
total latency of all non-acquire operations

getNumberOfRejectedAcquires

public long getNumberOfRejectedAcquires()
Description copied from interface: LocalSemaphoreOperationStats
Returns the total number of acquires operations that were rejected.

Specified by:
getNumberOfRejectedAcquires in interface LocalSemaphoreOperationStats
Returns:
number of acquire operations that were rejected

getNumberOfPermitsAcquired

public long getNumberOfPermitsAcquired()
Description copied from interface: LocalSemaphoreOperationStats
Returns the number of permits acquired.

Specified by:
getNumberOfPermitsAcquired in interface LocalSemaphoreOperationStats
Returns:
number of permits acquired

getNumberOfPermitsReduced

public long getNumberOfPermitsReduced()

getNumberOfPermitsReleased

public long getNumberOfPermitsReleased()
Description copied from interface: LocalSemaphoreOperationStats
Returns the number of permits released.

Specified by:
getNumberOfPermitsReleased in interface LocalSemaphoreOperationStats
Returns:
number of permits released

getNumberOfAttachedPermits

public long getNumberOfAttachedPermits()
Description copied from interface: LocalSemaphoreOperationStats
Returns the number of permits attached.

Specified by:
getNumberOfAttachedPermits in interface LocalSemaphoreOperationStats
Returns:
number of permits attached

getNumberOfDetachedPermits

public long getNumberOfDetachedPermits()
Description copied from interface: LocalSemaphoreOperationStats
Returns the number of permits detached.

Specified by:
getNumberOfDetachedPermits in interface LocalSemaphoreOperationStats
Returns:
number of permits detached

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.