@Service(name="counter") @PerLookup public class CounterImpl extends AbstractTreeNode implements Counter
| 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 |
|---|
CounterImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
decrement() |
long |
getCount() |
String |
getDescription() |
long |
getLastSampleTime() |
long |
getStartTime() |
String |
getUnit() |
Object |
getValue() |
void |
increment() |
void |
increment(long delta) |
void |
setCount(long count) |
void |
setReset(boolean reset) |
addChild, compareTo, equals, getCategory, getChild, getChildNodes, getChildNodesImmutable, getCompletePathName, getEnabledChildNodes, getName, getNode, getNodes, getNodes, getParent, getPossibleParentNode, hasChildNodes, hashCode, isEnabled, removeChild, setCategory, setDescription, setEnabled, setName, setParent, toString, traverseclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddChild, getCategory, getChild, getChildNodes, getCompletePathName, getEnabledChildNodes, getNode, getNodes, getNodes, getParent, getPossibleParentNode, hasChildNodes, isEnabled, removeChild, setCategory, setDescription, setEnabled, setParent, traversegetName, setNamepublic 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 long getCount()
public Object getValue()
getValue in interface TreeElementgetValue in class AbstractTreeNodepublic 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 © 2019. All rights reserved.