|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.spy.SpyObject
net.spy.stat.Stat
net.spy.stat.CounterStat
public class CounterStat
Simple counter stat.
| Constructor Summary | |
|---|---|
CounterStat()
Get an instance of CounterStat. |
|
| Method Summary | |
|---|---|
long |
getCount()
Get the current count for this counter. |
String |
getStat()
Get the count as a string. |
void |
increment()
Increment the counter. |
void |
increment(long howmuch)
Increment the counter a specific amount. |
void |
setValue(long to)
Set the absolute value of this counter. |
| Methods inherited from class net.spy.stat.Stat |
|---|
getName, setName, toString |
| Methods inherited from class net.spy.SpyObject |
|---|
getLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CounterStat()
| Method Detail |
|---|
public void increment()
public void increment(long howmuch)
howmuch - how much to increment the counterpublic long getCount()
public String getStat()
getStat in class Statpublic void setValue(long to)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||