public class RecoveryService
extends java.lang.Object
| Constructor and Description |
|---|
RecoveryService(java.io.File loadFile)
Contructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
endRecovery()
deletes recovery file, folder and creates Backup file.
|
java.lang.String |
readRecoveryUnit()
Read recovery file.
|
void |
releaseResources()
close the file handle
|
boolean |
startRecovery()
Creates a recovery file in the recovery folder
|
void |
writeRecoveryUnit(java.lang.String unit)
write recovery content
|
public RecoveryService(java.io.File loadFile)
loadFile - file to be importedpublic boolean startRecovery()
throws java.lang.Exception
java.lang.Exceptionpublic void endRecovery()
throws java.lang.Exception
java.lang.Exceptionpublic void releaseResources()
public void writeRecoveryUnit(java.lang.String unit)
throws java.lang.Exception
unit - java.lang.Exceptionpublic java.lang.String readRecoveryUnit()
throws java.lang.Exception
java.lang.Exception