public class SubscriptionController
extends java.lang.Object
| Constructor and Description |
|---|
SubscriptionController(NodeRPCConnection connection) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<AppInfo> |
getAppStats() |
BackupInfo |
getBackupInfo()
Get the details of the backup service.
|
PricingPlan |
getBackupPricingPlan(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.
|
VaultInfo |
getVaultInfo()
Get the details of the vault.
|
PricingPlan |
getVaultPricingPlan(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.
|
BackupInfo |
subscribeToBackup()
Subscribe the backup service with the free pricing plan.
|
VaultInfo |
subscribeToVault()
Subscribe the vault with the free pricing plan.
|
void |
unsubscribeBackup()
Unsubscribe the backup service.
|
void |
unsubscribeVault()
Unsubscribe the vault.
|
public SubscriptionController(NodeRPCConnection connection)
public java.util.List<PricingPlan> getVaultPricingPlanList() throws HiveException
HiveException - The error comes from the hive node.public PricingPlan getVaultPricingPlan(java.lang.String planName) throws HiveException
planName - The name of the pricing plan.HiveException - The error comes from the hive node.public VaultInfo getVaultInfo() throws HiveException
HiveException - The error comes from the hive node.public java.util.List<AppInfo> getAppStats() throws HiveException
HiveExceptionpublic VaultInfo subscribeToVault() throws HiveException
TODO: remove the parameter "credential"
HiveException - The error comes from the hive node.public void unsubscribeVault()
throws HiveException
HiveException - The error comes from the hive node.public java.util.List<PricingPlan> getBackupPricingPlanList() throws HiveException
HiveException - The error comes from the hive node.public PricingPlan getBackupPricingPlan(java.lang.String planName) throws HiveException
planName - The name of the pricing plan.HiveException - The error comes from the hive node.public BackupInfo getBackupInfo() throws HiveException
HiveException - The error comes from the hive node.public BackupInfo subscribeToBackup() throws HiveException
HiveException - The error comes from the hive node.public void unsubscribeBackup()
throws HiveException
HiveException - The error comes from the hive node.