org.activemq.management
Class CountStatisticImpl

java.lang.Object
  extended by org.activemq.management.StatisticImpl
      extended by org.activemq.management.CountStatisticImpl
All Implemented Interfaces:
Statistic, Resettable

public class CountStatisticImpl
extends StatisticImpl

A count statistic implementation

Version:
$Revision: 1.1.1.1 $

Constructor Summary
CountStatisticImpl(CountStatisticImpl parent, String name, String description)
           
CountStatisticImpl(String name, String description)
           
CountStatisticImpl(String name, String unit, String description)
           
 
Method Summary
 void add(long amount)
           
protected  void appendFieldDescription(StringBuffer buffer)
           
 void decrement()
           
 long getCount()
           
 CountStatisticImpl getParent()
           
 void increment()
           
 void reset()
          Reset the statistic
 void setCount(long count)
           
 void setParent(CountStatisticImpl parent)
           
 void subtract(long amount)
           
 
Methods inherited from class org.activemq.management.StatisticImpl
getDescription, getLastSampleTime, getName, getStartTime, getUnit, toString, updateSampleTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CountStatisticImpl

public CountStatisticImpl(CountStatisticImpl parent,
                          String name,
                          String description)

CountStatisticImpl

public CountStatisticImpl(String name,
                          String description)

CountStatisticImpl

public CountStatisticImpl(String name,
                          String unit,
                          String description)
Method Detail

reset

public void reset()
Description copied from interface: Resettable
Reset the statistic

Specified by:
reset in interface Resettable
Overrides:
reset in class StatisticImpl

getCount

public long getCount()

setCount

public void setCount(long count)

add

public void add(long amount)

increment

public void increment()

subtract

public void subtract(long amount)

decrement

public void decrement()

getParent

public CountStatisticImpl getParent()

setParent

public void setParent(CountStatisticImpl parent)

appendFieldDescription

protected void appendFieldDescription(StringBuffer buffer)
Overrides:
appendFieldDescription in class StatisticImpl


Copyright © 2004-2008 Protique, Ltd.. All Rights Reserved.