接口 BackupContext
-
- 所有已知实现类:
CloudBackupContext,HiveBackupContext
public interface BackupContextBackup context to provide backup information when doing backup relating things for the vault.
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 java.util.concurrent.CompletableFuture<java.lang.String>getAuthorization(java.lang.String srcDid, java.lang.String targetDid, java.lang.String targetHost)Get the authorization information for the backup processing.java.lang.StringgetParameter(java.lang.String key)Get the parameter for backup operation by key.java.lang.StringgetType()Get the backup destination type which the vault want to go.
-
-
-
方法详细资料
-
getType
java.lang.String getType()
Get the backup destination type which the vault want to go.- 返回:
- The type of the backup, such as cloud backup service, hive node, etc.
-
getParameter
java.lang.String getParameter(java.lang.String key)
Get the parameter for backup operation by key.- 参数:
key- The parameter name.- 返回:
- The parameter value.
-
getAuthorization
java.util.concurrent.CompletableFuture<java.lang.String> getAuthorization(java.lang.String srcDid, java.lang.String targetDid, java.lang.String targetHost)Get the authorization information for the backup processing. The authorization information is for the hive node to access the backup server which the backup information is in.- 参数:
srcDid- hive node service instance DID.targetDid- The instance did of the destination of the backup.targetHost- The host url of the destination of the backup.- 返回:
- The authorization token.
-
-