public class Recovery
extends java.lang.Object
The nitrite database recovery utility.
Constructor and Description |
---|
Recovery() |
Modifier and Type | Method and Description |
---|---|
static boolean |
recover(java.lang.String fileName)
Attempt a database file recovery by rolling back to the
newest good version.
|
static boolean |
recover(java.lang.String fileName,
java.io.PrintWriter writer)
Attempt a database file recovery by rolling back to the
newest good version.
|
public static boolean recover(java.lang.String fileName)
Attempt a database file recovery by rolling back to the newest good version.
fileName
- the database file nametrue
if repair successful; otherwise false
public static boolean recover(java.lang.String fileName, java.io.PrintWriter writer)
Attempt a database file recovery by rolling back to the newest good version. Writes the log using the specified writer.
fileName
- the database file namewriter
- the log writertrue
if repair successful; otherwise false