KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*-
2  * See the file LICENSE for redistribution information.
3  *
4  * Copyright (c) 2002,2006 Oracle. All rights reserved.
5  *
6  * $Id: CheckpointConfig.java,v 1.14 2006/11/20 15:46:58 cwl Exp $
7  */

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

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

20     public static final CheckpointConfig DEFAULT = new CheckpointConfig();
21
22     private boolean force = false;
23     private int kbytes = 0;
24     private int minutes = 0;
25     private boolean minimizeRecoveryTime = false;
26
27     /**
28      * Javadoc for this public method is generated via
29      * the doc templates in the doc_src directory.
30      */

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

38     public void setKBytes(int kbytes) {
39         this.kbytes = kbytes;
40     }
41
42     /**
43      * Javadoc for this public method is generated via
44      * the doc templates in the doc_src directory.
45      */

46     public int getKBytes() {
47         return kbytes;
48     }
49
50     /**
51      * Javadoc for this public method is generated via
52      * the doc templates in the doc_src directory.
53      */

54     public void setMinutes(int minutes) {
55         this.minutes = minutes;
56     }
57
58     /**
59      * Javadoc for this public method is generated via
60      * the doc templates in the doc_src directory.
61      */

62     public int getMinutes() {
63         return minutes;
64     }
65
66     /**
67      * Javadoc for this public method is generated via
68      * the doc templates in the doc_src directory.
69      */

70     public void setForce(boolean force) {
71         this.force = force;
72     }
73     
74     /**
75      * Javadoc for this public method is generated via
76      * the doc templates in the doc_src directory.
77      */

78     public boolean getForce() {
79         return force;
80     }
81
82     /**
83      * Javadoc for this public method is generated via
84      * the doc templates in the doc_src directory.
85      */

86     public void setMinimizeRecoveryTime(boolean minimizeRecoveryTime) {
87         this.minimizeRecoveryTime = minimizeRecoveryTime;
88     }
89     
90     /**
91      * Javadoc for this public method is generated via
92      * the doc templates in the doc_src directory.
93      */

94     public boolean getMinimizeRecoveryTime() {
95         return minimizeRecoveryTime;
96     }
97 }
98
Popular Tags