com.sleepycat.je.utilint
Class ActiveTxnArrayStat

java.lang.Object
  extended by com.sleepycat.je.utilint.Stat<TransactionStats.Active[]>
      extended by com.sleepycat.je.utilint.ActiveTxnArrayStat
All Implemented Interfaces:
Serializable, Cloneable

public class ActiveTxnArrayStat
extends Stat<TransactionStats.Active[]>

An array of active Txn stats.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.sleepycat.je.utilint.Stat
definition, FORMAT
 
Constructor Summary
ActiveTxnArrayStat(StatGroup group, StatDefinition definition)
           
ActiveTxnArrayStat(StatGroup group, StatDefinition definition, TransactionStats.Active[] array)
           
 
Method Summary
 void add(Stat<TransactionStats.Active[]> other)
          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.
 ActiveTxnArrayStat copy()
           
 TransactionStats.Active[] get()
           
(package private)  String getFormattedValue()
          Return a string with the stat value formatted as appropriate for its type.
 void set(TransactionStats.Active[] array)
          Set the stat value.
 
Methods inherited from class com.sleepycat.je.utilint.Stat
copyAndClear, getDefinition, toString, toStringVerbose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ActiveTxnArrayStat

public ActiveTxnArrayStat(StatGroup group,
                          StatDefinition definition)

ActiveTxnArrayStat

public ActiveTxnArrayStat(StatGroup group,
                          StatDefinition definition,
                          TransactionStats.Active[] array)
Method Detail

get

public TransactionStats.Active[] get()
Specified by:
get in class Stat<TransactionStats.Active[]>
Returns:
the stat value.

set

public void set(TransactionStats.Active[] array)
Description copied from class: Stat
Set the stat value.

Specified by:
set in class Stat<TransactionStats.Active[]>

add

public void add(Stat<TransactionStats.Active[]> other)
Description copied from class: Stat
Add the value of "other" to this stat.

Specified by:
add in class Stat<TransactionStats.Active[]>

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<TransactionStats.Active[]>

copy

public ActiveTxnArrayStat copy()
Overrides:
copy in class Stat<TransactionStats.Active[]>

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<TransactionStats.Active[]>


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