|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.StatsConfig
public class StatsConfig
Specifies the attributes of a statistics retrieval operation.
Field Summary | |
---|---|
static StatsConfig |
DEFAULT
A convenience instance embodying the default configuration. |
Constructor Summary | |
---|---|
StatsConfig()
An instance created using the default constructor is initialized with the system's default settings. |
Method Summary | |
---|---|
StatsConfig |
clone()
Returns a copy of this configuration object. |
boolean |
getClear()
Returns true if the statistics operation is configured to reset statistics after they are returned. |
boolean |
getFast()
Returns true if the statistics operation is configured to return only the values which do not require expensive actions. |
int |
getShowProgressInterval()
Returns the showProgressInterval value, if set. |
PrintStream |
getShowProgressStream()
Returns the PrintStream on which the progress messages will be displayed during long running statistics gathering operations. |
StatsConfig |
setClear(boolean clear)
Configures the statistics operation to reset statistics after they are returned. |
void |
setClearVoid(boolean clear)
|
StatsConfig |
setFast(boolean fast)
Configures the statistics operation to return only the values which do not incur some performance penalty. |
void |
setFastVoid(boolean fast)
|
StatsConfig |
setShowProgressInterval(int showProgressInterval)
When the statistics operation is configured to display progress the showProgressInterval is the number of LNs between each progress report. |
void |
setShowProgressIntervalVoid(int showProgressInterval)
|
StatsConfig |
setShowProgressStream(PrintStream showProgressStream)
Configures the statistics operation to display progress to the PrintStream argument. |
void |
setShowProgressStreamVoid(PrintStream showProgressStream)
|
String |
toString()
Returns the values for each configuration attribute. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final StatsConfig DEFAULT
Constructor Detail |
---|
public StatsConfig()
Method Detail |
---|
public StatsConfig setFast(boolean fast)
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.
fast
- If set to true, configure the statistics operation to return
only the values which do not incur some performance penalty.
public void setFastVoid(boolean fast)
public boolean getFast()
public StatsConfig setClear(boolean clear)
clear
- If set to true, configure the statistics operation to
reset statistics after they are returned.
public void setClearVoid(boolean clear)
public boolean getClear()
public StatsConfig setShowProgressStream(PrintStream showProgressStream)
public void setShowProgressStreamVoid(PrintStream showProgressStream)
public PrintStream getShowProgressStream()
public StatsConfig setShowProgressInterval(int showProgressInterval)
public void setShowProgressIntervalVoid(int showProgressInterval)
public int getShowProgressInterval()
public StatsConfig clone()
clone
in class Object
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |