public class BackupController
extends java.lang.Object
| Constructor and Description |
|---|
BackupController(NodeRPCConnection connection)
Create with the RPC connection.
|
| Modifier and Type | Method and Description |
|---|---|
BackupService.BackupResult |
checkResult()
Check the result of the backup process.
|
void |
restoreFrom(java.lang.String credential)
Restore the data of the vault from other place.
|
void |
startBackup(java.lang.String credential)
Start the backup process which backups the data of the vault to other place.
|
public BackupController(NodeRPCConnection connection)
connection - The RPC connection.public void startBackup(java.lang.String credential)
throws HiveException
credential - The credential for the hive node to access the backup service.HiveException - The error comes from the hive node.public void restoreFrom(java.lang.String credential)
throws HiveException
credential - The credential for the hive node to access the backup service.HiveException - The error comes from the hive node.public BackupService.BackupResult checkResult() throws HiveException
HiveException - The error comes from the hive node.