org.apache.activemq.management
Class RangeStatisticImpl

java.lang.Object
  extended by org.apache.activemq.management.StatisticImpl
      extended by org.apache.activemq.management.RangeStatisticImpl
All Implemented Interfaces:
Statistic, Resettable
Direct Known Subclasses:
BoundedRangeStatisticImpl

public class RangeStatisticImpl
extends StatisticImpl

A range statistic implementation


Field Summary
 
Fields inherited from class org.apache.activemq.management.StatisticImpl
enabled
 
Constructor Summary
RangeStatisticImpl(String name, String unit, String description)
           
 
Method Summary
protected  void appendFieldDescription(StringBuffer buffer)
           
 long getCurrent()
           
 long getHighWaterMark()
           
 long getLowWaterMark()
           
 void reset()
          Reset the statistic
 void setCurrent(long current)
           
 
Methods inherited from class org.apache.activemq.management.StatisticImpl
getDescription, getLastSampleTime, getName, getStartTime, getUnit, isDoReset, isEnabled, setDoReset, setEnabled, toString, updateSampleTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RangeStatisticImpl

public RangeStatisticImpl(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

getHighWaterMark

public long getHighWaterMark()

getLowWaterMark

public long getLowWaterMark()

getCurrent

public long getCurrent()

setCurrent

public void setCurrent(long current)

appendFieldDescription

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


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.