|
||||||||||
| 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.CountStatisticImpl
This class is the JBoss specific Counter Statistics class
| Field Summary | |
protected long |
count
|
| Fields inherited from class org.jboss.management.j2ee.statistics.StatisticImpl (src) |
description, lastSampleTime, name, startTime, units |
| Constructor Summary | |
CountStatisticImpl(java.lang.String name,
java.lang.String units,
java.lang.String description)
Create a CountStatistic |
|
| Method Summary | |
void |
add()
Adds a hit to this counter |
long |
getCount()
The count since the last reset. |
void |
remove()
Removes a hit to this counter |
void |
reset()
Resets the statistics to the initial values |
void |
set(long count)
Set the current value of the count |
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 count
| Constructor Detail |
public CountStatisticImpl(java.lang.String name,
java.lang.String units,
java.lang.String description)
name - the name of the stateunits - the units of the statdescription - a description of the stat| Method Detail |
public long getCount()
CountStatistic (src)
getCount in interface CountStatistic (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 count)
count - the new count
|
||||||||||
| PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||