接口 SubscriptionService<T>

  • 所有已知实现类:
    BackupSubscription, VaultSubscription

    public interface SubscriptionService<T>
    Hive node provides the subscription service to let a new user subscribe to their vault or backup service on the given back-end node.
    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型 方法 说明
      java.util.concurrent.CompletableFuture<java.lang.Void> activate()
      Activate the vault service.
      java.util.concurrent.CompletableFuture<T> checkSubscription()
      Let the user to get the basic information of the subscription.
      java.util.concurrent.CompletableFuture<java.lang.Void> deactivate()
      Deactivate the vault service.
      java.util.concurrent.CompletableFuture<java.util.List<AppInfo>> getAppStats()
      Get all application stats of the vault service
      java.util.concurrent.CompletableFuture<PricingPlan> getPricingPlan​(java.lang.String planName)
      Let users to get the specific pricing plan information.
      java.util.concurrent.CompletableFuture<java.util.List<PricingPlan>> getPricingPlanList()
      Let users to get the all the pricing plan list in order to subscribe to a new vault or backup service on the user's requirement.
      java.util.concurrent.CompletableFuture<T> subscribe()
      Let a new user subscribe to the entity service on the specified back-end node, where the entity service would be vault or backup service.
      java.util.concurrent.CompletableFuture<java.lang.Void> unsubscribe()  
      java.util.concurrent.CompletableFuture<java.lang.Void> unsubscribe​(boolean force)
      Let user to unsubscribe to an existing but useless vault or backup service.
    • 方法详细资料

      • getPricingPlanList

        java.util.concurrent.CompletableFuture<java.util.List<PricingPlan>> getPricingPlanList()
        Let users to get the all the pricing plan list in order to subscribe to a new vault or backup service on the user's requirement.
        返回:
        Return a list of all pricing plan with specific type on success. Otherwise, the specific exception would be returned.
      • getPricingPlan

        java.util.concurrent.CompletableFuture<PricingPlan> getPricingPlan​(java.lang.String planName)
        Let users to get the specific pricing plan information.
        参数:
        planName - the name of the pricing plan
        返回:
        Return the specific pricing plan information on success. Otherwise, the specific exception would be returned.
      • subscribe

        java.util.concurrent.CompletableFuture<T> subscribe()
        Let a new user subscribe to the entity service on the specified back-end node, where the entity service would be vault or backup service. Currently this method would only support for subscription to a entity service with free pricing plan. When there is already a corresponding service existed, no new service would be subscribed or created.
        返回:
        The basic information of the newly created or existing vault on success, otherwise, the specific exception would returned in the wrapper.
      • activate

        java.util.concurrent.CompletableFuture<java.lang.Void> activate()
        Activate the vault service.
        返回:
        None would be returned on success, otherwise, the specific exception would be returned.
      • deactivate

        java.util.concurrent.CompletableFuture<java.lang.Void> deactivate()
        Deactivate the vault service.
        返回:
        None would be returned on success, otherwise, the specific exception would be returned.
      • unsubscribe

        java.util.concurrent.CompletableFuture<java.lang.Void> unsubscribe​(boolean force)
        Let user to unsubscribe to an existing but useless vault or backup service.
        参数:
        force - whether force to remove the data.
        返回:
        None would be returned on success, otherwise, the specific exception would be returned.
      • unsubscribe

        java.util.concurrent.CompletableFuture<java.lang.Void> unsubscribe()
      • checkSubscription

        java.util.concurrent.CompletableFuture<T> checkSubscription()
        Let the user to get the basic information of the subscription.
        返回:
        The basic information of the newly created or existing vault on success, otherwise, the specific exception would returned in the wrapper.
      • getAppStats

        java.util.concurrent.CompletableFuture<java.util.List<AppInfo>> getAppStats()
        Get all application stats of the vault service
        返回:
        The application list.