public interface JournalMaster extends Master
Modifier and Type | Method and Description |
---|---|
GetNodeStatePResponse |
getNodeState()
Gets the node state.
|
GetQuorumInfoPResponse |
getQuorumInfo()
Quorum information for participating servers in journal.
|
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.
|
createJournalContext, getMasterContext, getStandbyServices
applyAndJournal, processJournalEntry, resetState, restoreFromCheckpoint, writeToCheckpoint
getCheckpointName
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 operationGetTransferLeaderMessagePResponse getTransferLeaderMessage(String transferId)
transferId
- the guid of transferLeader commandGetNodeStatePResponse getNodeState()
Copyright © 2023. All Rights Reserved.