类 BackupController
- java.lang.Object
-
- org.elastos.hive.vault.backup.BackupController
-
public class BackupController extends java.lang.ObjectThe backup controller is the wrapper class to access the backup module of the hive node.
-
-
构造器概要
构造器 构造器 说明 BackupController(NodeRPCConnection connection)Create with the RPC connection.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 BackupResultcheckResult()Check the result of the backup process.voidrestoreFrom(java.lang.String credential)Restore the data of the vault from other place.voidstartBackup(java.lang.String credential)Start the backup process which backups the data of the vault to other place.
-
-
-
构造器详细资料
-
BackupController
public BackupController(NodeRPCConnection connection)
Create with the RPC connection.- 参数:
connection- The RPC connection.
-
-
方法详细资料
-
startBackup
public void startBackup(java.lang.String credential) throws HiveExceptionStart the backup process which backups the data of the vault to other place.- 参数:
credential- The credential for the hive node to access the backup service.- 抛出:
HiveException- The error comes from the hive node.
-
restoreFrom
public void restoreFrom(java.lang.String credential) throws HiveExceptionRestore the data of the vault from other place.- 参数:
credential- The credential for the hive node to access the backup service.- 抛出:
HiveException- The error comes from the hive node.
-
checkResult
public BackupResult checkResult() throws HiveException
Check the result of the backup process.- 返回:
- The result of the backup process.
- 抛出:
HiveException- The error comes from the hive node.
-
-