Berkeley DB Java Edition
version 3.2.76

com.sleepycat.je
Class StatsConfig

java.lang.Object
  extended by com.sleepycat.je.StatsConfig

public class StatsConfig
extends Object

Specifies the attributes of a statistics retrieval operation.


Constructor Summary
StatsConfig()
          An instance created using the default constructor is initialized with the system's default settings.
 
Method Summary
 boolean getClear()
          Return if the statistics operation is configured to reset statistics after they are returned.
 boolean getFast()
          Return if the statistics operation is configured to return only the values which do not require expensive actions.
 int getShowProgressInterval()
          Return the showProgressInterval value, if set.
 PrintStream getShowProgressStream()
          Return the PrintStream on which the progress messages will be displayed during long running statistics gathering operations.
 void setClear(boolean clear)
          Configure the statistics operation to reset statistics after they are returned.
 void setFast(boolean fast)
          Configure the statistics operation to return only the values which do not incur some performance penalty.
 void setShowProgressInterval(int showProgressInterval)
          When the statistics operation is configured to display progress the showProgressInterval is the number of LNs between each progress report.
 void setShowProgressStream(PrintStream showProgressStream)
          Configure the statistics operation to display progress to the PrintStream argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatsConfig

public StatsConfig()
An instance created using the default constructor is initialized with the system's default settings.

Method Detail

setFast

public void setFast(boolean fast)
Configure the statistics operation to return only the values which do not incur some performance penalty.

The default value is false.

For example, skip stats that require a traversal of the database or in-memory tree, or which lock down the lock table for a period of time.

Parameters:
fast - If set to true, configure the statistics operation to return only the values which do not incur some performance penalty.

getFast

public boolean getFast()
Return if the statistics operation is configured to return only the values which do not require expensive actions.

Returns:
If the statistics operation is configured to return only the values which do not require expensive actions.

setClear

public void setClear(boolean clear)
Configure the statistics operation to reset statistics after they are returned. The default value is false.

Parameters:
clear - If set to true, configure the statistics operation to reset statistics after they are returned.

getClear

public boolean getClear()
Return if the statistics operation is configured to reset statistics after they are returned.

Returns:
If the statistics operation is configured to reset statistics after they are returned.

setShowProgressStream

public void setShowProgressStream(PrintStream showProgressStream)
Configure the statistics operation to display progress to the PrintStream argument. The accumulated statistics will be displayed every N records, where N is the value of showProgressInterval.


getShowProgressStream

public PrintStream getShowProgressStream()
Return the PrintStream on which the progress messages will be displayed during long running statistics gathering operations.


setShowProgressInterval

public void setShowProgressInterval(int showProgressInterval)
When the statistics operation is configured to display progress the showProgressInterval is the number of LNs between each progress report.


getShowProgressInterval

public int getShowProgressInterval()
Return the showProgressInterval value, if set.


Berkeley DB Java Edition
version 3.2.76

Copyright 1996,2008 Oracle. All rights reserved.