public class BackupWorkerRole extends AbstractBackupRole
BackupRole for secondary mode.mBackupManager, mBackupTracker, mCatalystRequestTimeout, mExecutorService, mGrpcMessagingContext, mJournalSystem, mRoleClosed, mServerUserState, mTaskScheduler, mUfsManager| Constructor and Description |
|---|
BackupWorkerRole(CoreMasterContext masterContext)
Creates a new backup worker.
|
| Modifier and Type | Method and Description |
|---|---|
BackupStatus |
backup(BackupPRequest request,
StateLockOptions stateLockOptions)
Takes a backup.
|
void |
close() |
BackupStatus |
getBackupStatus(BackupStatusPRequest statusPRequest)
Used to query the status of a backup.
|
java.util.Map<ServiceType,GrpcService> |
getRoleServices() |
sendMessageBlocking, takeBackuppublic BackupWorkerRole(CoreMasterContext masterContext)
masterContext - the master contextpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class AbstractBackupRolejava.io.IOExceptionpublic java.util.Map<ServiceType,GrpcService> getRoleServices()
public BackupStatus backup(BackupPRequest request, StateLockOptions stateLockOptions) throws AlluxioException
BackupOpsBackupOps.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 backupAlluxioExceptionpublic BackupStatus getBackupStatus(BackupStatusPRequest statusPRequest) throws AlluxioException
BackupOpsstatusPRequest - status requestAlluxioExceptionCopyright © 2020. All Rights Reserved.