@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, traverse
public 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 Average
public double getAverage()
getAverage
in interface Average
public String toString()
toString
in class AbstractTreeNode
public Object getValue()
getValue
in interface TreeElement
getValue
in class AbstractTreeNode
public long getHighWaterMark()
getHighWaterMark
in interface org.glassfish.external.statistics.RangeStatistic
public long getLowWaterMark()
getLowWaterMark
in interface org.glassfish.external.statistics.RangeStatistic
public long getCurrent()
getCurrent
in interface org.glassfish.external.statistics.RangeStatistic
public String getUnit()
getUnit
in interface org.glassfish.external.statistics.Statistic
public String getDescription()
getDescription
in interface org.glassfish.external.statistics.Statistic
getDescription
in interface TreeNode
getDescription
in class AbstractTreeNode
public long getStartTime()
getStartTime
in interface org.glassfish.external.statistics.Statistic
public long getLastSampleTime()
getLastSampleTime
in interface org.glassfish.external.statistics.Statistic
Copyright © 2021. All rights reserved.