1 8 9 package com.sleepycat.je; 10 11 import java.io.PrintStream ; 12 13 17 public class StatsConfig { 18 22 public static final StatsConfig DEFAULT = new StatsConfig(); 23 24 private boolean fast = false; 25 private boolean clear = false; 26 private PrintStream showProgressStream = null; 27 private int showProgressInterval = 0; 28 29 33 public StatsConfig() { 34 } 35 36 40 public void setFast(boolean fast) { 41 this.fast = fast; 42 } 43 44 48 public boolean getFast() { 49 return fast; 50 } 51 52 56 public void setClear(boolean clear) { 57 this.clear = clear; 58 } 59 60 64 public boolean getClear() { 65 return clear; 66 } 67 68 72 public void setShowProgressStream(PrintStream showProgressStream) { 73 this.showProgressStream = showProgressStream; 74 } 75 76 80 public PrintStream getShowProgressStream() { 81 return showProgressStream; 82 } 83 84 88 public void setShowProgressInterval(int showProgressInterval) { 89 this.showProgressInterval = showProgressInterval; 90 } 91 92 96 public int getShowProgressInterval() { 97 return showProgressInterval; 98 } 99 } 100 | Popular Tags |