public class RetryHandlingJournalMasterClient extends AbstractJobMasterClient implements JournalMasterClient
AbstractClient.RpcCallable<V>mConfAddressmChannel, mClosed, mConnected, mContext, mServerAddress, mServiceVersion, mVersionService| Constructor and Description |
|---|
RetryHandlingJournalMasterClient(MasterClientContext conf)
Creates a new journal master client.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterConnect() |
GetQuorumInfoPResponse |
getQuorumInfo()
Quorum information for participating servers in journal.
|
protected ServiceType |
getRemoteServiceType() |
protected java.lang.String |
getServiceName() |
protected long |
getServiceVersion() |
GetTransferLeaderMessagePResponse |
getTransferLeaderMessage(java.lang.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.
|
java.lang.String |
transferLeadership(NetAddress newLeaderNetAddress)
Initiates changing the leading master of the quorum.
|
getConfAddressafterDisconnect, beforeConnect, queryGrpcServerAddressbeforeDisconnect, checkVersion, close, connect, connectWithRuntimeException, disconnect, getRemoteHostName, getRemoteServiceVersion, getRemoteSockAddress, isClosed, isConnected, retryRPC, retryRPCpublic RetryHandlingJournalMasterClient(MasterClientContext conf)
conf - master client configurationprotected ServiceType getRemoteServiceType()
getRemoteServiceType in class AbstractClientprotected java.lang.String getServiceName()
getServiceName in class AbstractClientprotected long getServiceVersion()
getServiceVersion in class AbstractClientprotected void afterConnect()
afterConnect in class AbstractClientpublic GetQuorumInfoPResponse getQuorumInfo() throws AlluxioStatusException
JournalMasterClientgetQuorumInfo in interface JournalMasterClientAlluxioStatusExceptionpublic void removeQuorumServer(NetAddress serverAddress) throws AlluxioStatusException
JournalMasterClientremoveQuorumServer in interface JournalMasterClientserverAddress - server address to remove from quorumAlluxioStatusExceptionpublic java.lang.String transferLeadership(NetAddress newLeaderNetAddress) throws AlluxioStatusException
JournalMasterClienttransferLeadership in interface JournalMasterClientnewLeaderNetAddress - server address of the prospective new leaderAlluxioStatusExceptionpublic void resetPriorities()
throws AlluxioStatusException
JournalMasterClientresetPriorities in interface JournalMasterClientAlluxioStatusExceptionpublic GetTransferLeaderMessagePResponse getTransferLeaderMessage(java.lang.String transferId) throws AlluxioStatusException
JournalMasterClientgetTransferLeaderMessage in interface JournalMasterClienttransferId - the guid of transferLeader commandAlluxioStatusExceptionCopyright © 2022. All Rights Reserved.