com.sleepycat.je.utilint
Class LongMinStat

java.lang.Object
  extended by com.sleepycat.je.utilint.Stat<Long>
      extended by com.sleepycat.je.utilint.LongStat
          extended by com.sleepycat.je.utilint.LongMinStat
All Implemented Interfaces:
Cloneable

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).


Field Summary
 
Fields inherited from class com.sleepycat.je.utilint.LongStat
counter
 
Fields inherited from class com.sleepycat.je.utilint.Stat
definition, FORMAT
 
Constructor Summary
LongMinStat(StatGroup group, StatDefinition definition)
           
LongMinStat(StatGroup group, StatDefinition definition, long counter)
           
 
Method Summary
 void clear()
          Initialize the stat to the proper value at startup, or reset the stat when copyAndClear() is called.
(package private)  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).
 
Methods inherited from class com.sleepycat.je.utilint.LongStat
add, add, get, increment, set
 
Methods inherited from class com.sleepycat.je.utilint.Stat
copy, copyAndClear, getDefinition, toString, toStringVerbose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LongMinStat

public LongMinStat(StatGroup group,
                   StatDefinition definition)

LongMinStat

public LongMinStat(StatGroup group,
                   StatDefinition definition,
                   long counter)
Method Detail

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

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-2010 Oracle. All rights reserved.