Berkeley DB Java Edition
version 1.5.1

com.sleepycat.je
Class StatsConfig

java.lang.Object
  |
  +--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 are configured to reset all 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 such as traversal of the database or in-memory tree.
 void setClear(boolean clear)
          Configure the statistics operation to reset all 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.
 
Methods inherited from class java.lang.Object
equals, 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. 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. The default value is false.

Parameters:
fast - If set to true, configure the statistics operation to return only the values which do not incur some performance penalty. 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.

getFast

public boolean getFast()
Return if the statistics operation is configured to return only the values which do not require expensive actions such as traversal of the database or in-memory tree.

Returns:
If the statistics operation is configured to return only the values which do not require expensive actions such as traversal of the database or in-memory tree.

setClear

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

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

getClear

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

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

Berkeley DB Java Edition
version 1.5.1

Copyright (c) 1996-2004 Sleepycat Software, Inc. - All rights reserved.