public interface BackupOps
| Modifier and Type | Method and Description |
|---|---|
BackupStatus |
backup(BackupPRequest request,
StateLockOptions stateLockOptions)
Takes a backup.
|
BackupStatus |
getBackupStatus(BackupStatusPRequest statusPRequest)
Used to query the status of a backup.
|
BackupStatus backup(BackupPRequest request, StateLockOptions stateLockOptions) throws AlluxioException
getBackupStatus(alluxio.grpc.BackupStatusPRequest) should be called
for querying the status of the on-going backup.
Note: When leader has no secondary in an HA cluster, it will reject backup. This could be
allowed by passing "AllowLeader" option in the request.request - the backup requeststateLockOptions - the state lock options during the backupjava.io.IOException - if backup failsAlluxioExceptionBackupStatus getBackupStatus(BackupStatusPRequest statusPRequest) throws AlluxioException
statusPRequest - status requestjava.io.IOExceptionAlluxioExceptionCopyright © 2020. All Rights Reserved.