public class GenericStats extends AbstractStats
IStats type containing TypeAwareStatValues.MB| Constructor and Description |
|---|
GenericStats(java.lang.String aName)
Constructs an instance of GenericStats.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<TypeAwareStatValue> |
getAllValues() |
java.util.List<java.lang.String> |
getAvailableValueNames()
Returns the names of all contained stats.
|
TypeAwareStatValue |
getValueByName(java.lang.String valueName) |
java.lang.String |
getValueByNameAsString(java.lang.String valueName,
java.lang.String intervalName,
TimeUnit timeUnit) |
boolean |
hasValues() |
void |
putValue(TypeAwareStatValue value) |
java.lang.String |
toStatsString(java.lang.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(java.lang.String aName)
aName - name of the stats object.public java.util.Collection<TypeAwareStatValue> getAllValues()
TypeAwareStatValuespublic java.util.List<java.lang.String> getAvailableValueNames()
getAvailableValueNames in interface IStatsgetAvailableValueNames in interface StatsMXBeangetAvailableValueNames in class AbstractStatspublic TypeAwareStatValue getValueByName(java.lang.String valueName)
valueName - TypeAwareStatValue instance related to given namepublic java.lang.String getValueByNameAsString(java.lang.String valueName,
java.lang.String intervalName,
TimeUnit timeUnit)
getValueByNameAsString in interface IStatsgetValueByNameAsString in class AbstractStatspublic boolean hasValues()
public void putValue(TypeAwareStatValue value)
value - the TypeAwareStatValuepublic java.lang.String toStatsString(java.lang.String aIntervalName,
TimeUnit unit)
aIntervalName - the name of the interval or null for all intervalsCopyright © 2010-2020 anotheria.net. All Rights Reserved.