@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, traverse
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addChild, getCategory, getChild, getChildNodes, getCompletePathName, getEnabledChildNodes, getNode, getNodes, getNodes, getParent, getPossibleParentNode, hasChildNodes, isEnabled, removeChild, setCategory, setDescription, setEnabled, setParent, traverse
getName, setName
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 long getCount()
public Object getValue()
getValue
in interface TreeElement
getValue
in class AbstractTreeNode
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 © 2020. All rights reserved.