public abstract class GenericCounterStats extends AbstractStats
MB| Modifier | Constructor and Description |
|---|---|
protected |
GenericCounterStats(String name,
Interval[] intervals,
String firstCounter,
String... moreCounters) |
protected |
GenericCounterStats(String name,
String firstCounter,
String... moreCounters) |
| Modifier and Type | Method and Description |
|---|---|
abstract String |
describeForWebUI() |
long |
get(String counterName,
String intervalName) |
List<String> |
getAvailableValueNames()
Returns the names of all contained stats.
|
Set<String> |
getPossibleNames() |
String |
getValueByNameAsString(String valueName,
String intervalName,
TimeUnit timeUnit) |
void |
inc(String counterName) |
void |
incBy(String counterName,
long value) |
String |
toStatsString(String aIntervalName,
TimeUnit unit)
This method creates a human-readable textual representation of all statistical
values in the given interval.
|
String |
toString() |
addStatValues, createCallExecution, destroy, getName, isEmpty, toStatsString, toStatsString, toStatsStringprotected GenericCounterStats(String name, Interval[] intervals, String firstCounter, String... moreCounters)
public void inc(String counterName)
public void incBy(String counterName, long value)
public String toStatsString(String aIntervalName, TimeUnit unit)
IStatsaIntervalName - the name of the interval or null for all intervalspublic String toString()
toString in class AbstractStatspublic abstract String describeForWebUI()
public String getValueByNameAsString(String valueName, String intervalName, TimeUnit timeUnit)
getValueByNameAsString in interface IStatsgetValueByNameAsString in class AbstractStatspublic List<String> getAvailableValueNames()
IStatsgetAvailableValueNames in interface IStatsgetAvailableValueNames in interface StatsMXBeangetAvailableValueNames in class AbstractStatsCopyright © 2010-2017 anotheria.net. All Rights Reserved.