|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.sensor.counter.CounterRuntime
Main entry point for working with Counters. Counters usually keep track of a countable piece of business information, like the numbers of orders processed, the number of active sessions, the number of logged in users, etc.
Constructor Summary | |
CounterRuntime()
|
Method Summary | |
Counter |
getCounter(String label)
Retrieves the Counter that matches the specified label. |
List |
getCounters()
Returns a List<Counter> of all active counters. |
void |
reset()
Resets all active counters to zero. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CounterRuntime()
Method Detail |
public Counter getCounter(String label)
Counter
that matches the specified label.
label
- the label that should match an active instance of Counter
.
Counter
that matches the specified label.public List getCounters()
public void reset()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |