|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jboss.management.j2ee.statistics.StatisticImpl
org.jboss.management.j2ee.statistics.BoundedRangeStatisticImpl
This class is the JBoss specific BoundedRangeStatistic implementation
| Field Summary | |
protected BoundaryStatisticImpl |
boundaryStat
|
protected RangeStatisticImpl |
rangeStat
|
| Fields inherited from class org.jboss.management.j2ee.statistics.StatisticImpl |
description, lastSampleTime, name, startTime, units |
| Constructor Summary | |
BoundedRangeStatisticImpl(String name,
String units,
String description,
long lowerBound,
long upperBound)
Create a named BoundedRangeStatistic with the given upper and lower bounds. |
|
| Method Summary | |
void |
add()
Adds a hit to this counter |
long |
getCurrent()
The current value of this attribute. |
long |
getHighWaterMark()
The highest value this attribute has held since the beginning of the measurement. |
long |
getLowerBound()
The lower limit of the value of this attribute.The upper limit of the value of this attribute. |
long |
getLowWaterMark()
The lowest value this attribute has held since the beginning of the measurement. |
long |
getUpperBound()
The upper limit of the value of this attribute. |
void |
remove()
Removes a hit to this counter |
void |
reset()
Resets the statistics to the initial values |
void |
set(long current)
Set the current value of the RangeStatistic |
String |
toString()
|
| Methods inherited from class org.jboss.management.j2ee.statistics.StatisticImpl |
getDescription, getLastSampleTime, getName, getStartTime, getUnit, set |
| 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 |
| Field Detail |
protected BoundaryStatisticImpl boundaryStat
protected RangeStatisticImpl rangeStat
| Constructor Detail |
public BoundedRangeStatisticImpl(String name, String units, String description, long lowerBound, long upperBound)
name - the name of the statisticunits - the units of the statisticdescription - the description of the statisticlowerBound - the lower bound the statistic will attainupperBound - the upper bound the statistic will attain| Method Detail |
public long getCurrent()
javax.management.j2ee.statistics.RangeStatistic
getCurrent in interface javax.management.j2ee.statistics.RangeStatisticpublic long getHighWaterMark()
javax.management.j2ee.statistics.RangeStatistic
getHighWaterMark in interface javax.management.j2ee.statistics.RangeStatisticpublic long getLowWaterMark()
javax.management.j2ee.statistics.RangeStatistic
getLowWaterMark in interface javax.management.j2ee.statistics.RangeStatisticpublic long getLowerBound()
javax.management.j2ee.statistics.BoundaryStatistic
getLowerBound in interface javax.management.j2ee.statistics.BoundaryStatisticpublic long getUpperBound()
javax.management.j2ee.statistics.BoundaryStatistic
getUpperBound in interface javax.management.j2ee.statistics.BoundaryStatisticpublic String toString()
toString in class StatisticImplpublic void add()
public void remove()
public void reset()
reset in class StatisticImplpublic void set(long current)
current - the new current value
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||