public class GCStats extends AbstractStats
MB| Constructor and Description |
|---|
GCStats(java.lang.String aName)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
getAvailableValueNames()
Returns the names of all contained stats.
|
long |
getCollectionCount(java.lang.String intervalName)
Returns collection count for interval.
|
long |
getCollectionTime(java.lang.String intervalName)
Returns collection time for interval.
|
java.lang.String |
getValueByNameAsString(java.lang.String valueName,
java.lang.String intervalName,
TimeUnit timeUnit) |
java.lang.String |
toStatsString(java.lang.String intervalName,
TimeUnit unit)
This method creates a human-readable textual representation of all statistical
values in the given interval.
|
void |
update(long aCollectionCount,
long aCollectionTime)
Updates stats values.
|
addStatValues, createCallExecution, destroy, getName, isEmpty, toStatsString, toStatsString, toStatsString, toStringpublic GCStats(java.lang.String aName)
aName - stat namepublic java.lang.String toStatsString(java.lang.String intervalName,
TimeUnit unit)
IStatsintervalName - the name of the interval or null for all intervalspublic java.lang.String getValueByNameAsString(java.lang.String valueName,
java.lang.String intervalName,
TimeUnit timeUnit)
getValueByNameAsString in interface IStatsgetValueByNameAsString in class AbstractStatspublic java.util.List<java.lang.String> getAvailableValueNames()
IStatsgetAvailableValueNames in interface IStatsgetAvailableValueNames in interface StatsMXBeangetAvailableValueNames in class AbstractStatspublic void update(long aCollectionCount,
long aCollectionTime)
aCollectionCount - collection countaCollectionTime - collection timepublic long getCollectionCount(java.lang.String intervalName)
intervalName - interval namepublic long getCollectionTime(java.lang.String intervalName)
intervalName - interval nameCopyright © 2010-2020 anotheria.net. All Rights Reserved.