KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sleepycat > je > StatsConfig


1 /*-
2  * See the file LICENSE for redistribution information.
3  *
4  * Copyright (c) 2002,2006 Oracle. All rights reserved.
5  *
6  * $Id: StatsConfig.java,v 1.13 2006/11/16 17:18:58 cwl Exp $
7  */

8
9 package com.sleepycat.je;
10
11 import java.io.PrintStream JavaDoc;
12
13 /**
14  * Javadoc for this public class is generated
15  * via the doc templates in the doc_src directory.
16  */

17 public class StatsConfig {
18     /*
19      * For internal use, to allow null as a valid value for
20      * the config parameter.
21      */

22     public static final StatsConfig DEFAULT = new StatsConfig();
23
24     private boolean fast = false;
25     private boolean clear = false;
26     private PrintStream JavaDoc showProgressStream = null;
27     private int showProgressInterval = 0;
28
29     /**
30      * Javadoc for this public method is generated via
31      * the doc templates in the doc_src directory.
32      */

33     public StatsConfig() {
34     }
35
36     /**
37      * Javadoc for this public method is generated via
38      * the doc templates in the doc_src directory.
39      */

40     public void setFast(boolean fast) {
41         this.fast = fast;
42     }
43
44     /**
45      * Javadoc for this public method is generated via
46      * the doc templates in the doc_src directory.
47      */

48     public boolean getFast() {
49         return fast;
50     }
51
52     /**
53      * Javadoc for this public method is generated via
54      * the doc templates in the doc_src directory.
55      */

56     public void setClear(boolean clear) {
57         this.clear = clear;
58     }
59
60     /**
61      * Javadoc for this public method is generated via
62      * the doc templates in the doc_src directory.
63      */

64     public boolean getClear() {
65         return clear;
66     }
67
68     /**
69      * Javadoc for this public method is generated via
70      * the doc templates in the doc_src directory.
71      */

72     public void setShowProgressStream(PrintStream JavaDoc showProgressStream) {
73         this.showProgressStream = showProgressStream;
74     }
75
76     /**
77      * Javadoc for this public method is generated via
78      * the doc templates in the doc_src directory.
79      */

80     public PrintStream JavaDoc getShowProgressStream() {
81         return showProgressStream;
82     }
83
84     /**
85      * Javadoc for this public method is generated via
86      * the doc templates in the doc_src directory.
87      */

88     public void setShowProgressInterval(int showProgressInterval) {
89         this.showProgressInterval = showProgressInterval;
90     }
91
92     /**
93      * Javadoc for this public method is generated via
94      * the doc templates in the doc_src directory.
95      */

96     public int getShowProgressInterval() {
97         return showProgressInterval;
98     }
99 }
100
Popular Tags