001: /*-
002: * See the file LICENSE for redistribution information.
003: *
004: * Copyright (c) 2002,2008 Oracle. All rights reserved.
005: *
006: * $Id: VerifyConfig.java,v 1.11.2.3 2008/01/07 15:14:08 cwl Exp $
007: */
008:
009: package com.sleepycat.je;
010:
011: import java.io.PrintStream;
012:
013: /**
014: * Javadoc for this public class is generated
015: * via the doc templates in the doc_src directory.
016: */
017: public class VerifyConfig {
018: /*
019: * For internal use, to allow null as a valid value for
020: * the config parameter.
021: */
022: public static final VerifyConfig DEFAULT = new VerifyConfig();
023:
024: private boolean propagateExceptions = false;
025: private boolean aggressive = false;
026: private boolean printInfo = false;
027: private PrintStream showProgressStream = null;
028: private int showProgressInterval = 0;
029:
030: /**
031: * Javadoc for this public method is generated via
032: * the doc templates in the doc_src directory.
033: */
034: public VerifyConfig() {
035: }
036:
037: /**
038: * Javadoc for this public method is generated via
039: * the doc templates in the doc_src directory.
040: */
041: public void setPropagateExceptions(boolean propagate) {
042: propagateExceptions = propagate;
043: }
044:
045: /**
046: * Javadoc for this public method is generated via
047: * the doc templates in the doc_src directory.
048: */
049: public boolean getPropagateExceptions() {
050: return propagateExceptions;
051: }
052:
053: /**
054: * Javadoc for this public method is generated via
055: * the doc templates in the doc_src directory.
056: */
057: public void setAggressive(boolean aggressive) {
058: this .aggressive = aggressive;
059: }
060:
061: /**
062: * Javadoc for this public method is generated via
063: * the doc templates in the doc_src directory.
064: */
065: public boolean getAggressive() {
066: return aggressive;
067: }
068:
069: /**
070: * Javadoc for this public method is generated via
071: * the doc templates in the doc_src directory.
072: */
073: public void setPrintInfo(boolean printInfo) {
074: this .printInfo = printInfo;
075: }
076:
077: /**
078: * Javadoc for this public method is generated via
079: * the doc templates in the doc_src directory.
080: */
081: public boolean getPrintInfo() {
082: return printInfo;
083: }
084:
085: /**
086: * Javadoc for this public method is generated via
087: * the doc templates in the doc_src directory.
088: */
089: public void setShowProgressStream(PrintStream showProgressStream) {
090: this .showProgressStream = showProgressStream;
091: }
092:
093: /**
094: * Javadoc for this public method is generated via
095: * the doc templates in the doc_src directory.
096: */
097: public PrintStream getShowProgressStream() {
098: return showProgressStream;
099: }
100:
101: /**
102: * Javadoc for this public method is generated via
103: * the doc templates in the doc_src directory.
104: */
105: public void setShowProgressInterval(int showProgressInterval) {
106: this .showProgressInterval = showProgressInterval;
107: }
108:
109: /**
110: * Javadoc for this public method is generated via
111: * the doc templates in the doc_src directory.
112: */
113: public int getShowProgressInterval() {
114: return showProgressInterval;
115: }
116:
117: /**
118: * Returns the values for each configuration attribute.
119: * @return the values for each configuration attribute.
120: */
121: public String toString() {
122: StringBuffer sb = new StringBuffer();
123: sb.append("propagateExceptions=").append(propagateExceptions);
124: return sb.toString();
125: }
126: }
|