1 8 9 package com.sleepycat.je; 10 11 import java.io.PrintStream ; 12 13 17 public class VerifyConfig { 18 22 public static final VerifyConfig DEFAULT = new VerifyConfig(); 23 24 private boolean propagateExceptions = false; 25 private boolean aggressive = false; 26 private boolean printInfo = false; 27 private PrintStream showProgressStream = null; 28 private int showProgressInterval = 0; 29 30 34 public VerifyConfig() { 35 } 36 37 41 public void setPropagateExceptions(boolean propagate) { 42 propagateExceptions = propagate; 43 } 44 45 49 public boolean getPropagateExceptions() { 50 return propagateExceptions; 51 } 52 53 57 public void setAggressive(boolean aggressive) { 58 this.aggressive = aggressive; 59 } 60 61 65 public boolean getAggressive() { 66 return aggressive; 67 } 68 69 73 public void setPrintInfo(boolean printInfo) { 74 this.printInfo = printInfo; 75 } 76 77 81 public boolean getPrintInfo() { 82 return printInfo; 83 } 84 85 89 public void setShowProgressStream(PrintStream showProgressStream) { 90 this.showProgressStream = showProgressStream; 91 } 92 93 97 public PrintStream getShowProgressStream() { 98 return showProgressStream; 99 } 100 101 105 public void setShowProgressInterval(int showProgressInterval) { 106 this.showProgressInterval = showProgressInterval; 107 } 108 109 113 public int getShowProgressInterval() { 114 return showProgressInterval; 115 } 116 117 121 public String toString() { 122 StringBuffer sb = new StringBuffer (); 123 sb.append("propagateExceptions=").append(propagateExceptions); 124 return sb.toString(); 125 } 126 } 127 | Popular Tags |