public class RecoveryManager
extends java.lang.Object
Constructor and Description |
---|
RecoveryManager(java.lang.String pathFile) |
Modifier and Type | Method and Description |
---|---|
void |
erase()
Removes the Index Journal.
|
VPTree |
recover()
Recovers the Path Journal from disk.
|
void |
shutdown()
Closes open index files and stops accepting new data.
|
void |
start()
Prepares the journal files and allows new entries to be written.
|
void |
writeIndex(VPTree vpTree)
Adds a vp-tree
VPTree to the index journal. |
public VPTree recover() throws java.io.IOException
java.io.IOException
public void start() throws java.io.IOException
java.io.IOException
public void writeIndex(VPTree vpTree) throws FileSystemException, java.io.IOException
VPTree
to the index journal.vpTree
- The vp-tree to add to the journal.FileSystemException
java.io.IOException
public void erase() throws java.io.IOException
java.io.IOException
public void shutdown() throws java.io.IOException
java.io.IOException