org.apache.geronimo.management.stats
Class RangeStatisticImpl

java.lang.Object
  extended by org.apache.geronimo.management.stats.StatisticImpl
      extended by org.apache.geronimo.management.stats.RangeStatisticImpl
All Implemented Interfaces:
Serializable, RangeStatistic, Statistic
Direct Known Subclasses:
BoundedRangeStatisticImpl

public class RangeStatisticImpl
extends StatisticImpl
implements RangeStatistic

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.geronimo.management.stats.StatisticImpl
UNIT_COUNT, UNIT_MEMORY_BYTES, UNIT_MEMORY_GIGABYTES, UNIT_MEMORY_KILOBYTES, UNIT_MEMORY_MEGABYTES, UNIT_TIME_HOUR, UNIT_TIME_MICROSECOND, UNIT_TIME_MILLISECOND, UNIT_TIME_MINUTE, UNIT_TIME_NANOSECOND, UNIT_TIME_SECOND
 
Constructor Summary
RangeStatisticImpl(String name, String unit, String description)
           
RangeStatisticImpl(String name, String unit, String description, long currentValue)
           
 
Method Summary
 long getCurrent()
           
 long getHighWaterMark()
           
 long getLowWaterMark()
           
 void setCurrent(long current)
           
 void setHighWaterMark(long highWaterMark)
           
 void setLowWaterMark(long lowWaterMark)
           
 String toString()
           
 
Methods inherited from class org.apache.geronimo.management.stats.StatisticImpl
getDescription, getLastSampleTime, getName, getStartTime, getUnit, setLastSampleTime, setLastSampleTime, setStartTime, setStartTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.management.j2ee.statistics.Statistic
getDescription, getLastSampleTime, getName, getStartTime, getUnit
 

Constructor Detail

RangeStatisticImpl

public RangeStatisticImpl(String name,
                          String unit,
                          String description)

RangeStatisticImpl

public RangeStatisticImpl(String name,
                          String unit,
                          String description,
                          long currentValue)
Method Detail

getHighWaterMark

public long getHighWaterMark()
Specified by:
getHighWaterMark in interface RangeStatistic

getLowWaterMark

public long getLowWaterMark()
Specified by:
getLowWaterMark in interface RangeStatistic

getCurrent

public long getCurrent()
Specified by:
getCurrent in interface RangeStatistic

setCurrent

public void setCurrent(long current)

setHighWaterMark

public void setHighWaterMark(long highWaterMark)

setLowWaterMark

public void setLowWaterMark(long lowWaterMark)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2003-2008 The Apache Geronimo development community. All Rights Reserved.