@Service(name="average") @PerLookup public class AverageImpl extends AbstractTreeNode implements Average
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_MAX_BOUND
DEFAULT_UPPER_BOUND is maximum value Long can attain
|
static long |
DEFAULT_MIN_BOUND |
static long |
DEFAULT_VALUE
DEFAULT_LOWER_BOUND is same as DEFAULT_VALUE i.e.
|
protected static String |
NEWLINE
DEFAULT_VALUE of any statistic is 0
|
category, children, description, enabled, name| Constructor and Description |
|---|
AverageImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDataPoint(long value) |
double |
getAverage() |
long |
getCurrent() |
String |
getDescription() |
long |
getHighWaterMark() |
long |
getLastSampleTime() |
long |
getLowWaterMark() |
long |
getMax() |
long |
getMin() |
long |
getSize() |
long |
getStartTime() |
long |
getTotal() |
String |
getUnit() |
Object |
getValue() |
void |
setReset() |
String |
toString() |
addChild, compareTo, equals, getCategory, getChild, getChildNodes, getChildNodesImmutable, getCompletePathName, getEnabledChildNodes, getName, getNode, getNodes, getNodes, getParent, getPossibleParentNode, hasChildNodes, hashCode, isEnabled, removeChild, setCategory, setDescription, setEnabled, setName, setParent, traversepublic static final long DEFAULT_MAX_BOUND
public static final long DEFAULT_VALUE
public static final long DEFAULT_MIN_BOUND
protected static final String NEWLINE
public void addDataPoint(long value)
addDataPoint in interface Averagepublic double getAverage()
getAverage in interface Averagepublic String toString()
toString in class AbstractTreeNodepublic Object getValue()
getValue in interface TreeElementgetValue in class AbstractTreeNodepublic long getHighWaterMark()
getHighWaterMark in interface org.glassfish.external.statistics.RangeStatisticpublic long getLowWaterMark()
getLowWaterMark in interface org.glassfish.external.statistics.RangeStatisticpublic long getCurrent()
getCurrent in interface org.glassfish.external.statistics.RangeStatisticpublic String getUnit()
getUnit in interface org.glassfish.external.statistics.Statisticpublic String getDescription()
getDescription in interface org.glassfish.external.statistics.StatisticgetDescription in interface TreeNodegetDescription in class AbstractTreeNodepublic long getStartTime()
getStartTime in interface org.glassfish.external.statistics.Statisticpublic long getLastSampleTime()
getLastSampleTime in interface org.glassfish.external.statistics.StatisticCopyright © 2017. All rights reserved.