public class DefaultJournalMaster extends AbstractMaster implements JournalMaster, NoopJournaled
JournalMaster
. This is used by both master and job_master
processes.mClock, mJournal, mMasterContext
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() |
GetTransferLeaderMessagePResponse |
getTransferLeaderMessage(String transferId)
Gets exception messages thrown when transferring the leader.
|
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
getJournalEntryIterator
close, getDependencies, start, stop
getCheckpointName, getJournalEntryIterator, processJournalEntry, resetState, restoreFromCheckpoint, 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 GetTransferLeaderMessagePResponse getTransferLeaderMessage(String transferId)
JournalMaster
getTransferLeaderMessage
in interface JournalMaster
transferId
- the guid of transferLeader commandpublic 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.