程序包 org.elastos.hive
类 Vault
- java.lang.Object
-
- org.elastos.hive.connection.NodeRPCConnection
-
- org.elastos.hive.ServiceEndpoint
-
- org.elastos.hive.Vault
-
public class Vault extends ServiceEndpoint
This class explicitly represents the vault service subscribed by "userDid".To use the vault, subscription is required.
VaultSubscription subscription = new VaultSubscription(appContext, providerAddress); subscription.subscribe().get();Then the services belongs to the vault will be got by this class.
Vault vault = new Vault(appContext, providerAddress); FilesService filesService = vault.getFilesService();
-
-
构造器概要
构造器 构造器 说明 Vault(AppContext context)Vault(AppContext context, java.lang.String providerAddress)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 BackupServicegetBackupService()Get the backup service of the vault.DatabaseServicegetDatabaseService()Get the database service of the vault.FilesServicegetFilesService()Get the files service of the vault.ScriptingServicegetScriptingService()Get the scripting service of the vault.-
从类继承的方法 org.elastos.hive.ServiceEndpoint
getAccessToken, getAppContext, getAppDid, getAppInstanceDid, getLatestCommitId, getNodeInfo, getNodeVersion, getProviderAddress, getServiceDid, getServiceInstanceDid, getStorage, getUserDid, refreshAccessToken
-
从类继承的方法 org.elastos.hive.connection.NodeRPCConnection
createService, openConnection
-
-
-
-
构造器详细资料
-
Vault
public Vault(AppContext context, java.lang.String providerAddress)
-
Vault
public Vault(AppContext context)
-
-
方法详细资料
-
getFilesService
public FilesService getFilesService()
Get the files service of the vault.- 返回:
- The instance of the files service.
-
getDatabaseService
public DatabaseService getDatabaseService()
Get the database service of the vault.- 返回:
- The instance of the database service.
-
getScriptingService
public ScriptingService getScriptingService()
Get the scripting service of the vault.- 返回:
- The instance of the scripting service.
-
getBackupService
public BackupService getBackupService()
Get the backup service of the vault.- 返回:
- The instance of the backup service.
-
-