类 BackupController


  • public class BackupController
    extends java.lang.Object
    The backup controller is the wrapper class to access the backup module of the hive node.
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      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.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • BackupController

        public BackupController​(NodeRPCConnection connection)
        Create with the RPC connection.
        参数:
        connection - The RPC connection.
    • 方法详细资料

      • startBackup

        public void startBackup​(java.lang.String credential)
                         throws HiveException
        Start 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 HiveException
        Restore 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.