public abstract class AbstractBackupRole extends java.lang.Object implements BackupRole
| Modifier and Type | Field and Description |
|---|---|
protected BackupManager |
mBackupManager
Backup Manager.
|
protected BackupTracker |
mBackupTracker
Used to track backup status.
|
protected long |
mCatalystRequestTimeout |
protected java.util.concurrent.ExecutorService |
mExecutorService
The executor service.
|
protected GrpcMessagingContext |
mGrpcMessagingContext
Catalyst context used for sending/receiving messages.
|
protected JournalSystem |
mJournalSystem
Journal system.
|
protected boolean |
mRoleClosed
Whether the role is active.
|
protected UserState |
mServerUserState
User information for server.
|
protected java.util.concurrent.ScheduledExecutorService |
mTaskScheduler
Task scheduler.
|
protected UfsManager |
mUfsManager
The manager of all ufs.
|
| Constructor and Description |
|---|
AbstractBackupRole(CoreMasterContext masterContext)
Creates a BackupMaster.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
sendMessageBlocking(GrpcMessagingConnection connection,
java.lang.Object message)
Used to send message via connection and wait until response is received.
|
protected AlluxioURI |
takeBackup(BackupPRequest request,
java.util.concurrent.atomic.AtomicLong entryCounter)
Takes a backup on local master.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRoleServicesbackup, getBackupStatusprotected final long mCatalystRequestTimeout
protected final UfsManager mUfsManager
protected java.util.concurrent.ScheduledExecutorService mTaskScheduler
protected java.util.concurrent.ExecutorService mExecutorService
protected GrpcMessagingContext mGrpcMessagingContext
protected JournalSystem mJournalSystem
protected BackupManager mBackupManager
protected UserState mServerUserState
protected BackupTracker mBackupTracker
protected boolean mRoleClosed
public AbstractBackupRole(CoreMasterContext masterContext)
masterContext - master contextprotected void sendMessageBlocking(GrpcMessagingConnection connection, java.lang.Object message) throws java.io.IOException
java.io.IOExceptionprotected AlluxioURI takeBackup(BackupPRequest request, java.util.concurrent.atomic.AtomicLong entryCounter) throws java.io.IOException
request - the backup requestentryCounter - counter to receive written entry countjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionCopyright © 2020. All Rights Reserved.