public class GenericStats extends AbstractStats
IStats type containing TypeAwareStatValues.MB| Constructor and Description |
|---|
GenericStats(String aName)
Constructs an instance of GenericStats.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<TypeAwareStatValue> |
getAllValues() |
List<String> |
getAvailableValueNames()
Returns the names of all contained stats.
|
TypeAwareStatValue |
getValueByName(String valueName) |
String |
getValueByNameAsString(String valueName,
String intervalName,
TimeUnit timeUnit) |
boolean |
hasValues() |
void |
putValue(TypeAwareStatValue value) |
String |
toStatsString(String aIntervalName,
TimeUnit unit)
This method creates a human-readable textual representation of all statistical
values in the given interval.
|
addStatValues, createCallExecution, destroy, getName, isEmpty, toStatsString, toStatsString, toStatsString, toStringpublic GenericStats(String aName)
aName - name of the stats object.public Collection<TypeAwareStatValue> getAllValues()
TypeAwareStatValuespublic List<String> getAvailableValueNames()
getAvailableValueNames in interface IStatsgetAvailableValueNames in interface StatsMXBeangetAvailableValueNames in class AbstractStatspublic TypeAwareStatValue getValueByName(String valueName)
valueName - TypeAwareStatValue instance related to given namepublic String getValueByNameAsString(String valueName, String intervalName, TimeUnit timeUnit)
getValueByNameAsString in interface IStatsgetValueByNameAsString in class AbstractStatspublic boolean hasValues()
public void putValue(TypeAwareStatValue value)
value - the TypeAwareStatValueCopyright © 2010-2017 anotheria.net. All Rights Reserved.