org.apache.geronimo.management.stats
Class BoundedRangeImpl

java.lang.Object
  extended by org.apache.geronimo.management.stats.StatisticImpl
      extended by org.apache.geronimo.management.stats.RangeStatisticImpl
          extended by org.apache.geronimo.management.stats.BoundedRangeImpl
All Implemented Interfaces:
Serializable, BoundaryStatistic, BoundedRangeStatistic, RangeStatistic, Statistic

public class BoundedRangeImpl
extends RangeStatisticImpl
implements BoundedRangeStatistic

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
BoundedRangeImpl(String name, String unit, String description)
           
BoundedRangeImpl(String name, String unit, String description, long currentValue, long lowerBound, long upperBound)
           
 
Method Summary
 long getLowerBound()
           
 long getUpperBound()
           
 void setBounds(long lower, long upper)
           
 void setCurrent(long current)
           
 void setLowerBound(long lowerBound)
           
 void setUpperBound(long upperBound)
           
 
Methods inherited from class org.apache.geronimo.management.stats.RangeStatisticImpl
getCurrent, getHighWaterMark, getLowWaterMark, setHighWaterMark, setLowWaterMark
 
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, toString, wait, wait, wait
 
Methods inherited from interface javax.management.j2ee.statistics.Statistic
getDescription, getLastSampleTime, getName, getStartTime, getUnit
 
Methods inherited from interface javax.management.j2ee.statistics.RangeStatistic
getCurrent, getHighWaterMark, getLowWaterMark
 
Methods inherited from interface javax.management.j2ee.statistics.Statistic
getDescription, getLastSampleTime, getName, getStartTime, getUnit
 

Constructor Detail

BoundedRangeImpl

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

BoundedRangeImpl

public BoundedRangeImpl(String name,
                        String unit,
                        String description,
                        long currentValue,
                        long lowerBound,
                        long upperBound)
Method Detail

getUpperBound

public long getUpperBound()
Specified by:
getUpperBound in interface BoundaryStatistic

setUpperBound

public void setUpperBound(long upperBound)

getLowerBound

public long getLowerBound()
Specified by:
getLowerBound in interface BoundaryStatistic

setLowerBound

public void setLowerBound(long lowerBound)

setBounds

public void setBounds(long lower,
                      long upper)

setCurrent

public void setCurrent(long current)
Overrides:
setCurrent in class RangeStatisticImpl


Copyright © 2006 Apache Software Foundation. All Rights Reserved.