public abstract class AbstractStats extends java.lang.Object implements IStats, StatsMXBean
| Modifier and Type | Field and Description |
|---|---|
protected static long |
MB
Constant for MegaByte.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractStats()
Creates a new AbstractStats object.
|
protected |
AbstractStats(java.lang.String aName)
Creates a new AbstractStats object with given name.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addStatValues(StatValue... values) |
CallExecution |
createCallExecution()
Not supported by default.
|
void |
destroy()
Called when this stats object is removed from the system.
|
java.util.List<java.lang.String> |
getAvailableValueNames()
Returns the names of all contained stats.
|
java.lang.String |
getName()
This method returns the name of this set of statistical values.
|
java.lang.String |
getValueByNameAsString(java.lang.String valueName,
java.lang.String intervalName,
TimeUnit timeUnit) |
boolean |
isEmpty(java.lang.String intervalName)
Returns true if this stat object didn't record anything of interest in a given interval.
|
java.lang.String |
toStatsString()
This method creates a human-readable textual representation of all statistical
values in all intervals.
|
java.lang.String |
toStatsString(java.lang.String intervalName)
This method creates a human-readable textual representation of all statistical
values in the given interval.
|
java.lang.String |
toStatsString(TimeUnit timeUnit)
This method creates a human-readable textual representation of all statistical
values in all intervals.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waittoStatsStringprotected static final long MB
protected AbstractStats()
protected AbstractStats(java.lang.String aName)
aName - name of the stats object.public java.lang.String getName()
IStatspublic java.lang.String toStatsString()
IStatstoStatsString in interface IStatspublic java.lang.String toStatsString(java.lang.String intervalName)
IStatstoStatsString in interface IStatsintervalName - the name of the interval or null for all intervalspublic java.lang.String toStatsString(TimeUnit timeUnit)
IStatstoStatsString in interface IStatspublic CallExecution createCallExecution()
createCallExecution in interface IStatspublic java.lang.String getValueByNameAsString(java.lang.String valueName,
java.lang.String intervalName,
TimeUnit timeUnit)
getValueByNameAsString in interface IStatspublic java.util.List<java.lang.String> getAvailableValueNames()
IStatsgetAvailableValueNames in interface IStatsgetAvailableValueNames in interface StatsMXBeanpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean isEmpty(java.lang.String intervalName)
IStatspublic void destroy()
IStatsprotected void addStatValues(StatValue... values)
Copyright © 2010-2020 anotheria.net. All Rights Reserved.