程序包 org.elastos.hive
类 Provider
- java.lang.Object
-
- org.elastos.hive.connection.NodeRPCConnection
-
- org.elastos.hive.ServiceEndpoint
-
- 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(AppContext context)Provider(AppContext context, java.lang.String providerAddress)Create by the application context and the provider address.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 java.util.concurrent.CompletableFuture<java.util.List<BackupDetail>>getBackups()Get all backup service stats of the hive node.java.util.concurrent.CompletableFuture<java.util.List<FilledOrderDetail>>getFilledOrders()Get all filled order stats of the hive node.java.util.concurrent.CompletableFuture<java.util.List<VaultDetail>>getVaults()Get all vault service stats of the hive node.-
从类继承的方法 org.elastos.hive.ServiceEndpoint
getAccessToken, getAppContext, getAppDid, getAppInstanceDid, getLatestCommitId, getNodeInfo, getNodeVersion, getProviderAddress, getServiceDid, getServiceInstanceDid, getStorage, getUserDid, refreshAccessToken
-
从类继承的方法 org.elastos.hive.connection.NodeRPCConnection
createService, openConnection
-
-
-
-
构造器详细资料
-
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 contextproviderAddress- 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.
-
-