程序包 org.elastos.hive

类 Provider


  • public class Provider
    extends ServiceEndpoint
    This class is used to fetch some possible information from remote hive node. eg. all vaults information;
    • How many DID involved;
    • How many vault service running there;
    • How many backup service running there;
    • How much disk storage filled there;
    • etc.
    • 构造器详细资料

      • Provider

        public Provider​(AppContext context)
      • Provider

        public Provider​(AppContext context,
                        java.lang.String providerAddress)
        Create by the application context and the provider address.
        参数:
        context - The application context
        providerAddress - The provider address
    • 方法详细资料

      • getVaults

        public java.util.concurrent.CompletableFuture<java.util.List<VaultDetail>> getVaults()
        Get all vault service stats of the hive node. The access user DID MUST be the owner of the hive node.
        返回:
        vault service list.
      • getBackups

        public java.util.concurrent.CompletableFuture<java.util.List<BackupDetail>> getBackups()
        Get all backup service stats of the hive node. The access user DID MUST be the owner of the hive node.
        返回:
        backup service list.
      • getFilledOrders

        public java.util.concurrent.CompletableFuture<java.util.List<FilledOrderDetail>> getFilledOrders()
        Get all filled order stats of the hive node. The access user DID MUST be the owner of the hive node.
        返回:
        payment list.