程序包 org.elastos.hive
类 Backup
- java.lang.Object
-
- org.elastos.hive.connection.NodeRPCConnection
-
- org.elastos.hive.ServiceEndpoint
-
- org.elastos.hive.Backup
-
public class Backup extends ServiceEndpoint
This represents the service end-point of the backup hive node.Currently, the backup hive node only supports store the backup data of the vault service, and promote the backup node to the vault node. The old vault will be disabled after this promotion.
Before using promotion service, the subscription for the backup service is required on backup hive node.
BackupSubscription subscription = new BackupSubscription(appContext, providerAddress); subscription.subscribe().get();And then, execute the backup operation on the vault hive node.
Vault vault = new Vault(appContext, providerAddress); BackupService backupService = vault.getBackupService()); backupService.startBackup().get();The third step is executing the promotion operation.
PromotionService promotionService = new Backup(appContext, providerAddress); promotionService.promote().get();
-
-
构造器概要
构造器 构造器 说明 Backup(AppContext context)Backup(AppContext context, java.lang.String providerAddress)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 PromotionServicegetPromotionService()-
从类继承的方法 org.elastos.hive.ServiceEndpoint
getAccessToken, getAppContext, getAppDid, getAppInstanceDid, getLatestCommitId, getNodeInfo, getNodeVersion, getProviderAddress, getServiceDid, getServiceInstanceDid, getStorage, getUserDid, refreshAccessToken
-
从类继承的方法 org.elastos.hive.connection.NodeRPCConnection
createService, openConnection
-
-
-
-
构造器详细资料
-
Backup
public Backup(AppContext context, java.lang.String providerAddress)
-
Backup
public Backup(AppContext context)
-
-
方法详细资料
-
getPromotionService
public PromotionService getPromotionService()
-
-