net.sf.ehcache.distribution.jgroups.jmx
Class JGroupsCacheReceiverStats

java.lang.Object
  extended by net.sf.ehcache.distribution.jgroups.jmx.JGroupsCacheReceiverStats
All Implemented Interfaces:
JGroupsCacheReceiverStatsCounter, JGroupsCacheReceiverStatsMBean

public class JGroupsCacheReceiverStats
extends Object
implements JGroupsCacheReceiverStatsMBean, JGroupsCacheReceiverStatsCounter

Tracks JGroupsCacheReceiver Statistics

Author:
Eric Dalquist

Constructor Summary
JGroupsCacheReceiverStats()
           
 
Method Summary
 void countBootstrapComplete()
          Count a bootstrap complete event
 void countBootstrapIncomplete()
          Count a bootstrap incomplete event
 void countBootstrapRequest()
          Count a bootstrap request event
 void countBootstrapResponse()
          Count a bootstrap response event
 void countPut()
          Count a put event
 void countRemoveAll()
          Count a remove all event
 void countRemoveExisting()
          Count a remove existing event
 void countRemoveNotExisting()
          Count a remove not existing event
 long getBootstrapCompleteCount()
           
 long getBootstrapIncompleteCount()
           
 long getBootstrapRequestCount()
           
 long getBootstrapResponseCount()
           
 long getPutCount()
           
 double getPutRate()
           
 long getRemoveAllCount()
           
 double getRemoveAllRate()
           
 long getRemoveExistingCount()
           
 double getRemoveExistingRate()
           
 long getRemoveNotExistingCount()
           
 double getRemoveNotExistingRate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JGroupsCacheReceiverStats

public JGroupsCacheReceiverStats()
Method Detail

countRemoveAll

public void countRemoveAll()
Description copied from interface: JGroupsCacheReceiverStatsCounter
Count a remove all event

Specified by:
countRemoveAll in interface JGroupsCacheReceiverStatsCounter

getRemoveAllCount

public long getRemoveAllCount()
Specified by:
getRemoveAllCount in interface JGroupsCacheReceiverStatsMBean
Returns:
Number of remove_all events received

getRemoveAllRate

public double getRemoveAllRate()
Specified by:
getRemoveAllRate in interface JGroupsCacheReceiverStatsMBean
Returns:
Rate of remove_all event reception over the last second

countRemoveExisting

public void countRemoveExisting()
Description copied from interface: JGroupsCacheReceiverStatsCounter
Count a remove existing event

Specified by:
countRemoveExisting in interface JGroupsCacheReceiverStatsCounter

getRemoveExistingCount

public long getRemoveExistingCount()
Specified by:
getRemoveExistingCount in interface JGroupsCacheReceiverStatsMBean
Returns:
Number of remove events received where the local element existed.

getRemoveExistingRate

public double getRemoveExistingRate()
Specified by:
getRemoveExistingRate in interface JGroupsCacheReceiverStatsMBean
Returns:
Rate of remove event reception where the local element existed over the last second

countRemoveNotExisting

public void countRemoveNotExisting()
Description copied from interface: JGroupsCacheReceiverStatsCounter
Count a remove not existing event

Specified by:
countRemoveNotExisting in interface JGroupsCacheReceiverStatsCounter

getRemoveNotExistingCount

public long getRemoveNotExistingCount()
Specified by:
getRemoveNotExistingCount in interface JGroupsCacheReceiverStatsMBean
Returns:
Number of remove events received where the local element did not exist

getRemoveNotExistingRate

public double getRemoveNotExistingRate()
Specified by:
getRemoveNotExistingRate in interface JGroupsCacheReceiverStatsMBean
Returns:
Rate of remove event reception where the local element did not exist over the last second

countPut

public void countPut()
Description copied from interface: JGroupsCacheReceiverStatsCounter
Count a put event

Specified by:
countPut in interface JGroupsCacheReceiverStatsCounter

getPutCount

public long getPutCount()
Specified by:
getPutCount in interface JGroupsCacheReceiverStatsMBean
Returns:
Number of put events received

getPutRate

public double getPutRate()
Specified by:
getPutRate in interface JGroupsCacheReceiverStatsMBean
Returns:
Rate of put event reception over the last second

countBootstrapRequest

public void countBootstrapRequest()
Description copied from interface: JGroupsCacheReceiverStatsCounter
Count a bootstrap request event

Specified by:
countBootstrapRequest in interface JGroupsCacheReceiverStatsCounter

countBootstrapComplete

public void countBootstrapComplete()
Description copied from interface: JGroupsCacheReceiverStatsCounter
Count a bootstrap complete event

Specified by:
countBootstrapComplete in interface JGroupsCacheReceiverStatsCounter

countBootstrapIncomplete

public void countBootstrapIncomplete()
Description copied from interface: JGroupsCacheReceiverStatsCounter
Count a bootstrap incomplete event

Specified by:
countBootstrapIncomplete in interface JGroupsCacheReceiverStatsCounter

countBootstrapResponse

public void countBootstrapResponse()
Description copied from interface: JGroupsCacheReceiverStatsCounter
Count a bootstrap response event

Specified by:
countBootstrapResponse in interface JGroupsCacheReceiverStatsCounter

getBootstrapRequestCount

public long getBootstrapRequestCount()
Specified by:
getBootstrapRequestCount in interface JGroupsCacheReceiverStatsMBean
Returns:
the bootstrap request event count

getBootstrapCompleteCount

public long getBootstrapCompleteCount()
Specified by:
getBootstrapCompleteCount in interface JGroupsCacheReceiverStatsMBean
Returns:
the bootstrap complete event count

getBootstrapIncompleteCount

public long getBootstrapIncompleteCount()
Specified by:
getBootstrapIncompleteCount in interface JGroupsCacheReceiverStatsMBean
Returns:
the bootstrap incomplete event count

getBootstrapResponseCount

public long getBootstrapResponseCount()
Specified by:
getBootstrapResponseCount in interface JGroupsCacheReceiverStatsMBean
Returns:
the bootstrap response event count


Copyright © 2003-2012 Terracotta, Inc.. All Rights Reserved.