public interface JournalMaster extends Master
LOG
Modifier and Type | Method and Description |
---|---|
GetNodeStatePResponse |
getNodeState()
Gets the node state.
|
GetQuorumInfoPResponse |
getQuorumInfo()
Quorum information for participating servers in journal.
|
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.
|
createJournalContext, getMasterContext, getStandbyServices
applyAndJournal, processJournalEntry, resetState, restoreFromCheckpoint, writeToCheckpoint
getCheckpointName, restoreFromCheckpoint, writeToCheckpoint
getJournalEntryIterator
close, getDependencies, getName, getServices, start, stop
GetQuorumInfoPResponse getQuorumInfo() throws IOException
JournalType.EMBEDDED
journal.IOException
- if error occurs while performing the operationvoid removeQuorumServer(NetAddress serverAddress) throws IOException
JournalType.EMBEDDED
journal.serverAddress
- server address to remove from quorumIOException
- if error occurs while performing the operationString transferLeadership(NetAddress newLeaderAddress)
JournalType.EMBEDDED
journal.newLeaderAddress
- server address to remove from quorumvoid resetPriorities() throws IOException
IOException
- if error occurs while performing the operationGetNodeStatePResponse getNodeState()
Copyright © 2023. All Rights Reserved.