com.hazelcast.impl.monitor
Class LocalMapOperationStatsImpl

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

public class LocalMapOperationStatsImpl
extends Object
implements LocalMapOperationStats

See Also:
Serialized Form

Constructor Summary
LocalMapOperationStatsImpl()
           
 
Method Summary
 long getNumberOfEvents()
          Returns the number of Events Received
 long getNumberOfGets()
          Returns the number of get operations
 long getNumberOfOtherOperations()
          Returns the total number of Other Operations
 long getNumberOfPuts()
          Returns the number of put operations
 long getNumberOfRemoves()
          Returns the number of Remove operations
 long getPeriodEnd()
          Gets the end time of the period in milliseconds.
 long getPeriodStart()
          Gets the start time of the period in milliseconds.
 long getTotalGetLatency()
          Returns the total latency of get operations in this period.
 long getTotalPutLatency()
          Returns the total latency of put operations in this period.
 long getTotalRemoveLatency()
          Returns the total latency of remove operations in this period.
 void readData(DataInput in)
           
 String toString()
           
 long total()
          Returns the total number of total operations
 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

LocalMapOperationStatsImpl

public LocalMapOperationStatsImpl()
Method Detail

total

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

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

getNumberOfPuts

public long getNumberOfPuts()
Description copied from interface: LocalMapOperationStats
Returns the number of put operations

Specified by:
getNumberOfPuts in interface LocalMapOperationStats
Returns:
number of put operations

getNumberOfGets

public long getNumberOfGets()
Description copied from interface: LocalMapOperationStats
Returns the number of get operations

Specified by:
getNumberOfGets in interface LocalMapOperationStats
Returns:
number of get operations

getTotalPutLatency

public long getTotalPutLatency()
Description copied from interface: LocalMapOperationStats
Returns the total latency of put operations in this period. To get the average latency, divide to number of puts

Specified by:
getTotalPutLatency in interface LocalMapOperationStats
Returns:

getTotalGetLatency

public long getTotalGetLatency()
Description copied from interface: LocalMapOperationStats
Returns the total latency of get operations in this period. To get the average latency, divide to number of gets

Specified by:
getTotalGetLatency in interface LocalMapOperationStats
Returns:

getTotalRemoveLatency

public long getTotalRemoveLatency()
Description copied from interface: LocalMapOperationStats
Returns the total latency of remove operations in this period. To get the average latency, divide to number of gets

Specified by:
getTotalRemoveLatency in interface LocalMapOperationStats
Returns:

getNumberOfRemoves

public long getNumberOfRemoves()
Description copied from interface: LocalMapOperationStats
Returns the number of Remove operations

Specified by:
getNumberOfRemoves in interface LocalMapOperationStats
Returns:
number of remove operations

getNumberOfOtherOperations

public long getNumberOfOtherOperations()
Description copied from interface: LocalMapOperationStats
Returns the total number of Other Operations

Specified by:
getNumberOfOtherOperations in interface LocalMapOperationStats
Returns:
number of other operations

getNumberOfEvents

public long getNumberOfEvents()
Description copied from interface: LocalMapOperationStats
Returns the number of Events Received

Specified by:
getNumberOfEvents in interface LocalMapOperationStats
Returns:
number of events received

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.