com.sleepycat.je.utilint
Class LongMinStat
java.lang.Object
com.sleepycat.je.utilint.Stat<Long>
com.sleepycat.je.utilint.LongStat
com.sleepycat.je.utilint.LongMinStat
- All Implemented Interfaces:
- Serializable, Cloneable
- Direct Known Subclasses:
- LongMinZeroStat
public class LongMinStat
- extends LongStat
A long stat which maintains a minimum value. It is intialized to
Long.MAX_VALUE. The setMin() method assigns the counter to
MIN(counter, new value).
- See Also:
- Serialized Form
Method Summary |
void |
clear()
Initialize the stat to the proper value at startup, or reset the
stat when copyAndClear() is called. |
protected String |
getFormattedValue()
Return a string with the stat value formatted as appropriate for
its type. |
void |
setMin(long newValue)
Set stat to MIN(current stat value, newValue). |
LongMinStat
public LongMinStat(StatGroup group,
StatDefinition definition)
LongMinStat
public LongMinStat(StatGroup group,
StatDefinition definition,
long counter)
clear
public void clear()
- Description copied from class:
Stat
- Initialize the stat to the proper value at startup, or reset the
stat when copyAndClear() is called.
- Overrides:
clear
in class LongStat
setMin
public void setMin(long newValue)
- Set stat to MIN(current stat value, newValue).
getFormattedValue
protected String getFormattedValue()
- Description copied from class:
Stat
- Return a string with the stat value formatted as appropriate for
its type.
- Overrides:
getFormattedValue
in class LongStat
Copyright (c) 2004-2012 Oracle. All rights reserved.