|
||||||||||
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.RangeStatisticImpl
This class is the JBoss specific Range Statistics class allowing just to increase and resetStats the instance.
Field Summary | |
protected long |
current
|
protected long |
highWaterMark
|
protected long |
lowWaterMark
|
Fields inherited from class org.jboss.management.j2ee.statistics.StatisticImpl (src) |
description, lastSampleTime, name, startTime, units |
Constructor Summary | |
RangeStatisticImpl(java.lang.String pName,
java.lang.String pUnit,
java.lang.String pDescription)
Default (no-args) constructor |
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 |
getLowWaterMark()
The lowest value this attribute has held since the beginning of the measurement. |
void |
remove()
Removes a hit to this counter |
void |
reset()
Resets the statistics to the initial values |
void |
set(long current)
|
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 long current
protected long highWaterMark
protected long lowWaterMark
Constructor Detail |
public RangeStatisticImpl(java.lang.String pName, java.lang.String pUnit, java.lang.String pDescription)
Method 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 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)
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |