com.sleepycat.je.utilint
Class BooleanStat

java.lang.Object
  extended by com.sleepycat.je.utilint.Stat<Boolean>
      extended by com.sleepycat.je.utilint.BooleanStat
All Implemented Interfaces:
Serializable, Cloneable

public class BooleanStat
extends Stat<Boolean>

A boolean JE stat.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.sleepycat.je.utilint.Stat
definition, FORMAT
 
Constructor Summary
BooleanStat(StatGroup group, StatDefinition definition)
           
 
Method Summary
 void add(Stat<Boolean> otherStat)
          Add the value of "other" to this stat.
 void clear()
          Initialize the stat to the proper value at startup, or reset the stat when copyAndClear() is called.
 Boolean get()
           
(package private)  String getFormattedValue()
          Return a string with the stat value formatted as appropriate for its type.
 void set(Boolean newValue)
          Set the stat value.
 
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

BooleanStat

public BooleanStat(StatGroup group,
                   StatDefinition definition)
Method Detail

get

public Boolean get()
Specified by:
get in class Stat<Boolean>
Returns:
the stat value.

set

public void set(Boolean newValue)
Description copied from class: Stat
Set the stat value.

Specified by:
set in class Stat<Boolean>

add

public void add(Stat<Boolean> otherStat)
Description copied from class: Stat
Add the value of "other" to this stat.

Specified by:
add in class Stat<Boolean>

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.

Specified by:
clear in class Stat<Boolean>

getFormattedValue

String getFormattedValue()
Description copied from class: Stat
Return a string with the stat value formatted as appropriate for its type.

Specified by:
getFormattedValue in class Stat<Boolean>


Copyright (c) 2004-2010 Oracle. All rights reserved.