org.activemq.management
Class RangeStatisticImpl

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

public class RangeStatisticImpl
extends StatisticImpl

A range statistic implementation

Version:
$Revision: 1.1.1.1 $

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.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

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 © 2004-2007 Protique, Ltd.. All Rights Reserved.