类 SubscriptionController
- java.lang.Object
-
- org.elastos.hive.subscription.SubscriptionController
-
public class SubscriptionController extends java.lang.ObjectThe subscription controller is for subscribing the vault or the backup.
-
-
构造器概要
构造器 构造器 说明 SubscriptionController(NodeRPCConnection connection)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidactivateVault()Activate vaultvoiddeactivateVault()Deactivate vaultjava.util.List<AppInfo>getAppStats()BackupInfogetBackupInfo()Get the details of the backup service.PricingPlangetBackupPricingPlan(java.lang.String planName)Get the pricing plan for the backup by name.java.util.List<PricingPlan>getBackupPricingPlanList()Get the pricing plan list of the backup service which can be used for upgrading the service.VaultInfogetVaultInfo()Get the details of the vault.PricingPlangetVaultPricingPlan(java.lang.String planName)Get the pricing plan for the vault by name.java.util.List<PricingPlan>getVaultPricingPlanList()Get the pricing plan list of the vault which can be used for upgrading the vault.BackupInfosubscribeToBackup()Subscribe the backup service with the free pricing plan.VaultInfosubscribeToVault()Subscribe the vault with the free pricing plan.voidunsubscribeBackup()Unsubscribe the backup service.voidunsubscribeVault(boolean force)Unsubscribe the vault.
-
-
-
构造器详细资料
-
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.
-
getAppStats
public java.util.List<AppInfo> getAppStats() throws HiveException
- 抛出:
HiveException
-
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 HiveExceptionActivate vault- 抛出:
HiveException- The error comes from the hive node.
-
deactivateVault
public void deactivateVault() throws HiveExceptionDeactivate vault- 抛出:
HiveException- The error comes from the hive node.
-
unsubscribeVault
public void unsubscribeVault(boolean force) throws HiveExceptionUnsubscribe 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 HiveExceptionUnsubscribe the backup service.- 抛出:
HiveException- The error comes from the hive node.
-
-