Package org.h2.store
Class RecoverTester
java.lang.Object
org.h2.store.RecoverTester
- All Implemented Interfaces:
Recorder
A tool that simulates a crash while writing to the database, and then
verifies the database doesn't get corrupt.
-
Field Summary
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic voidInitialize the recover test.voidRecord the method.voidsetTestEvery(int testEvery)
-
Constructor Details
-
RecoverTester
public RecoverTester()
-
-
Method Details
-
init
Initialize the recover test.- Parameters:
recoverTest- the value of the recover test parameter
-
log
Description copied from interface:RecorderRecord the method. -
setTestEvery
public void setTestEvery(int testEvery)
-