public class CounterStats extends GenericCounterStats
MB| Constructor and Description |
|---|
CounterStats(String name)
Creates new counter stats object.
|
CounterStats(String name,
Interval[] intervals)
Creates new counter stats object.
|
| Modifier and Type | Method and Description |
|---|---|
String |
describeForWebUI() |
long |
get()
Gets the current value for default interval.
|
long |
get(String intervalName)
Gets the counter value fo an interval.
|
void |
inc()
Increases current counter.
|
void |
incBy(long value)
Increases current counter by a value.
|
get, getAvailableValueNames, getPossibleNames, getValueByNameAsString, inc, incBy, toStatsString, toStringaddStatValues, createCallExecution, destroy, getName, isEmpty, toStatsString, toStatsString, toStatsStringpublic CounterStats(String name, Interval[] intervals)
name - intervals - public CounterStats(String name)
name - name of the object.public void inc()
public void incBy(long value)
value - public long get(String intervalName)
intervalName - name of the interval.public long get()
public String describeForWebUI()
describeForWebUI in class GenericCounterStatsCopyright © 2010-2017 anotheria.net. All Rights Reserved.