@ThreadSafe public final class DefaultThrottleMaster extends AbstractMaster implements NoopJournaled
Modifier and Type | Class and Description |
---|---|
static class |
DefaultThrottleMaster.ThrottleExecutor
Collects and saves call home information during the heartbeat.
|
mClock, mJournal, mMasterContext
Constructor and Description |
---|
DefaultThrottleMaster(MasterRegistry registry,
MasterContext masterContext)
Creates a new instance of
DefaultThrottleMaster . |
Modifier and Type | Method and Description |
---|---|
Set<Class<? extends Server>> |
getDependencies() |
String |
getName() |
Map<ServiceType,GrpcService> |
getServices() |
void |
setMaster(MasterProcess masterProcess)
Sets the master to be used in
DefaultThrottleMaster.ThrottleExecutor for throttling. |
void |
start(Boolean isLeader)
Starts the Alluxio server.
|
close, createJournalContext, getExecutorService, getMasterContext, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCheckpointName, getJournalEntryIterator, processJournalEntry, resetState, restoreFromCheckpoint, writeToCheckpoint
applyAndJournal
getStandbyServices
public DefaultThrottleMaster(MasterRegistry registry, MasterContext masterContext)
DefaultThrottleMaster
.registry
- the master registrymasterContext
- the context for Alluxio masterpublic void setMaster(MasterProcess masterProcess)
DefaultThrottleMaster.ThrottleExecutor
for throttling.
This should be called before calling start(Boolean)
.masterProcess
- the Alluxio master processpublic Set<Class<? extends Server>> getDependencies()
getDependencies
in interface Server<Boolean>
getDependencies
in class AbstractMaster
public String getName()
public void start(Boolean isLeader) throws IOException
Server
start
in interface Server<Boolean>
start
in class AbstractMaster
isLeader
- the start optionsIOException
public Map<ServiceType,GrpcService> getServices()
getServices
in interface Server<Boolean>
Copyright © 2023. All Rights Reserved.