Package org.h2.store
Class RecoverTester
- java.lang.Object
-
- org.h2.store.RecoverTester
-
-
Field Summary
Fields Modifier and Type Field Description private static RecoverTesterinstanceprivate java.util.HashSet<java.lang.String>knownErrorsprivate longmaxFileSizeprivate java.lang.StringtestDatabaseprivate inttestEveryprivate booleantestingprivate intverifyCountprivate intwriteCount-
Fields inherited from interface org.h2.store.fs.Recorder
CREATE_NEW_FILE, CREATE_TEMP_FILE, DELETE, OPEN_OUTPUT_STREAM, RENAME, TRUNCATE, WRITE
-
-
Constructor Summary
Constructors Constructor Description RecoverTester()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidinit(java.lang.String recoverTest)Initialize the recover test.voidlog(int op, java.lang.String fileName, byte[] data, long x)Record the method.voidsetTestEvery(int testEvery)private voidtestDatabase(java.lang.String fileName, java.io.PrintWriter out)
-
-
-
Field Detail
-
instance
private static final RecoverTester instance
-
testDatabase
private java.lang.String testDatabase
-
writeCount
private int writeCount
-
testEvery
private int testEvery
-
maxFileSize
private final long maxFileSize
-
verifyCount
private int verifyCount
-
knownErrors
private final java.util.HashSet<java.lang.String> knownErrors
-
testing
private volatile boolean testing
-
-
Method Detail
-
init
public static void init(java.lang.String recoverTest)
Initialize the recover test.- Parameters:
recoverTest- the value of the recover test parameter
-
log
public void log(int op, java.lang.String fileName, byte[] data, long x)Description copied from interface:RecorderRecord the method.
-
testDatabase
private void testDatabase(java.lang.String fileName, java.io.PrintWriter out)
-
setTestEvery
public void setTestEvery(int testEvery)
-
-