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 standby 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 backupIOException
- if backup failsAlluxioException
BackupStatus getBackupStatus(BackupStatusPRequest statusPRequest) throws AlluxioException
statusPRequest
- status requestIOException
AlluxioException
Copyright © 2023. All Rights Reserved.