public class LongMaxStat extends LongStat
definition, FORMAT| Constructor and Description |
|---|
LongMaxStat(StatGroup group,
StatDefinition definition) |
LongMaxStat(StatGroup group,
StatDefinition definition,
long counter) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Initialize the stat to the proper value at startup, or reset the
stat when copyAndClear() is called.
|
protected java.lang.String |
getFormattedValue()
Return a string with the stat value formatted as appropriate for
its type.
|
boolean |
setMax(long newValue)
Set stat to MAX(current stat value, newValue).
|
add, add, get, increment, isNotSet, setcopy, copyAndClear, getDefinition, toString, toStringVerbosepublic LongMaxStat(StatGroup group, StatDefinition definition)
public LongMaxStat(StatGroup group, StatDefinition definition, long counter)
public void clear()
Statpublic boolean setMax(long newValue)
protected java.lang.String getFormattedValue()
StatgetFormattedValue in class LongStatCopyright (c) 2004-2012 Oracle. All rights reserved.