com.caucho.jmx.stats
Class RangeStats

java.lang.Object
  extended by com.caucho.jmx.stats.RangeStats

public class RangeStats
extends java.lang.Object

Statistics for a range of values.


Constructor Summary
RangeStats()
          Create a null range stats.
RangeStats(java.lang.String name)
          Create a null range stats.
 
Method Summary
 long getCurrent()
          Returns the current value.
 long getHighWaterMark()
          Returns the high water mark value.
 long getLowWaterMark()
          Returns the low water mark value.
 void reset()
          Resets the range.
 void setCurrent(long current)
          Sets the current value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RangeStats

public RangeStats()
Create a null range stats.


RangeStats

public RangeStats(java.lang.String name)
Create a null range stats.

Method Detail

getCurrent

public long getCurrent()
Returns the current value.


getLowWaterMark

public long getLowWaterMark()
Returns the low water mark value.


getHighWaterMark

public long getHighWaterMark()
Returns the high water mark value.


setCurrent

public void setCurrent(long current)
Sets the current value.


reset

public void reset()
Resets the range.