public class DefaultJournalMaster extends AbstractMaster implements JournalMaster, NoopJournaled
JournalMaster
. This is used by both master and job_master
processes.mClock, mJournal, mMasterContext
LOG
Constructor and Description |
---|
DefaultJournalMaster(JournalDomain journalDomain,
MasterContext masterContext) |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
GetNodeStatePResponse |
getNodeState()
Gets the node state.
|
GetQuorumInfoPResponse |
getQuorumInfo()
Quorum information for participating servers in journal.
|
Map<ServiceType,GrpcService> |
getServices() |
void |
removeQuorumServer(NetAddress serverAddress)
Removes a server from journal quorum.
|
void |
resetPriorities()
Resets RaftPeer priorities.
|
String |
transferLeadership(NetAddress newLeaderAddress)
Changes the leading master of the journal quorum.
|
close, createJournalContext, getDependencies, getExecutorService, getMasterContext, start, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createJournalContext, getMasterContext, getStandbyServices
applyAndJournal, processJournalEntry, resetState, restoreFromCheckpoint, writeToCheckpoint
getCheckpointName, restoreFromCheckpoint, writeToCheckpoint
getJournalEntryIterator
close, getDependencies, start, stop
getCheckpointName, getJournalEntryIterator, processJournalEntry, resetState, restoreFromCheckpoint, restoreFromCheckpoint, writeToCheckpoint, writeToCheckpoint
public DefaultJournalMaster(JournalDomain journalDomain, MasterContext masterContext)
journalDomain
- domain for the journalmasterContext
- the context for Alluxio masterpublic GetQuorumInfoPResponse getQuorumInfo() throws IOException
JournalMaster
JournalType.EMBEDDED
journal.getQuorumInfo
in interface JournalMaster
IOException
- if error occurs while performing the operationpublic void removeQuorumServer(NetAddress serverAddress) throws IOException
JournalMaster
JournalType.EMBEDDED
journal.removeQuorumServer
in interface JournalMaster
serverAddress
- server address to remove from quorumIOException
- if error occurs while performing the operationpublic String transferLeadership(NetAddress newLeaderAddress)
JournalMaster
JournalType.EMBEDDED
journal.transferLeadership
in interface JournalMaster
newLeaderAddress
- server address to remove from quorumpublic void resetPriorities() throws IOException
JournalMaster
resetPriorities
in interface JournalMaster
IOException
- if error occurs while performing the operationpublic GetNodeStatePResponse getNodeState()
JournalMaster
getNodeState
in interface JournalMaster
public String getName()
public Map<ServiceType,GrpcService> getServices()
getServices
in interface Server<Boolean>
Copyright © 2023. All Rights Reserved.