|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.management.j2ee.statistics.StatisticImpl (src)
org.jboss.management.j2ee.statistics.BoundedRangeStatisticImpl
This class is the JBoss specific BoundedRangeStatistic implementation
Field Summary | |
protected BoundaryStatisticImpl (src) |
boundaryStat
|
protected RangeStatisticImpl (src) |
rangeStat
|
Fields inherited from class org.jboss.management.j2ee.statistics.StatisticImpl (src) |
description, lastSampleTime, name, startTime, units |
Constructor Summary | |
BoundedRangeStatisticImpl(java.lang.String name,
java.lang.String units,
java.lang.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 |
java.lang.String |
toString()
|
Methods inherited from class org.jboss.management.j2ee.statistics.StatisticImpl (src) |
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 (src) |
getDescription, getLastSampleTime, getName, getStartTime, getUnit |
Field Detail |
protected BoundaryStatisticImpl (src) boundaryStat
protected RangeStatisticImpl (src) rangeStat
Constructor Detail |
public BoundedRangeStatisticImpl(java.lang.String name, java.lang.String units, java.lang.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 attainMethod Detail |
public long getCurrent()
RangeStatistic (src)
getCurrent
in interface RangeStatistic (src)
public long getHighWaterMark()
RangeStatistic (src)
getHighWaterMark
in interface RangeStatistic (src)
public long getLowWaterMark()
RangeStatistic (src)
getLowWaterMark
in interface RangeStatistic (src)
public long getLowerBound()
BoundaryStatistic (src)
getLowerBound
in interface BoundaryStatistic (src)
public long getUpperBound()
BoundaryStatistic (src)
getUpperBound
in interface BoundaryStatistic (src)
public java.lang.String toString()
toString
in class StatisticImpl (src)
public void add()
public void remove()
public void reset()
reset
in class StatisticImpl (src)
public void set(long current)
current
- the new current value
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |