类 SubscriptionController


  • public class SubscriptionController
    extends java.lang.Object
    The subscription controller is for subscribing the vault or the backup.
    • 构造器详细资料

      • SubscriptionController

        public SubscriptionController​(NodeRPCConnection connection)
    • 方法详细资料

      • getVaultPricingPlanList

        public java.util.List<PricingPlan> getVaultPricingPlanList()
                                                            throws HiveException
        Get the pricing plan list of the vault which can be used for upgrading the vault.
        返回:
        The price plan list.
        抛出:
        HiveException - The error comes from the hive node.
      • getVaultPricingPlan

        public PricingPlan getVaultPricingPlan​(java.lang.String planName)
                                        throws HiveException
        Get the pricing plan for the vault by name.
        参数:
        planName - The name of the pricing plan.
        返回:
        The pricing plan
        抛出:
        HiveException - The error comes from the hive node.
      • getVaultInfo

        public VaultInfo getVaultInfo()
                               throws HiveException
        Get the details of the vault.
        返回:
        The details of the vault.
        抛出:
        HiveException - The error comes from the hive node.
      • subscribeToVault

        public VaultInfo subscribeToVault()
                                   throws HiveException
        Subscribe the vault with the free pricing plan.

        TODO: remove the parameter "credential"

        返回:
        The details of the new created vault.
        抛出:
        HiveException - The error comes from the hive node.
      • activateVault

        public void activateVault()
                           throws HiveException
        Activate vault
        抛出:
        HiveException - The error comes from the hive node.
      • deactivateVault

        public void deactivateVault()
                             throws HiveException
        Deactivate vault
        抛出:
        HiveException - The error comes from the hive node.
      • unsubscribeVault

        public void unsubscribeVault​(boolean force)
                              throws HiveException
        Unsubscribe the vault.
        参数:
        force - whether force to remove the data of the vault, or not.
        抛出:
        HiveException - The error comes from the hive node.
      • getBackupPricingPlanList

        public java.util.List<PricingPlan> getBackupPricingPlanList()
                                                             throws HiveException
        Get the pricing plan list of the backup service which can be used for upgrading the service.
        返回:
        The price plan list.
        抛出:
        HiveException - The error comes from the hive node.
      • getBackupPricingPlan

        public PricingPlan getBackupPricingPlan​(java.lang.String planName)
                                         throws HiveException
        Get the pricing plan for the backup by name.
        参数:
        planName - The name of the pricing plan.
        返回:
        The pricing plan
        抛出:
        HiveException - The error comes from the hive node.
      • getBackupInfo

        public BackupInfo getBackupInfo()
                                 throws HiveException
        Get the details of the backup service.
        返回:
        The details of the backup service.
        抛出:
        HiveException - The error comes from the hive node.
      • subscribeToBackup

        public BackupInfo subscribeToBackup()
                                     throws HiveException
        Subscribe the backup service with the free pricing plan.
        返回:
        The details of the new created backup service.
        抛出:
        HiveException - The error comes from the hive node.
      • unsubscribeBackup

        public void unsubscribeBackup()
                               throws HiveException
        Unsubscribe the backup service.
        抛出:
        HiveException - The error comes from the hive node.