public class RetryHandlingJournalMasterClient extends AbstractJobMasterClient implements JournalMasterClient
AbstractClient.RpcCallable<V>
mConfAddress
mAlwaysEnableTLS, mChannel, 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()
This method is called after the connection is made to the remote.
|
GetQuorumInfoPResponse |
getQuorumInfo()
Quorum information for participating servers in journal.
|
protected ServiceType |
getRemoteServiceType() |
protected String |
getServiceName() |
protected long |
getServiceVersion() |
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 newLeaderNetAddress)
Initiates changing the leading master of the quorum.
|
getConfAddress
afterDisconnect, beforeConnect, queryGrpcServerAddress
beforeDisconnect, checkVersion, close, connect, connectWithRuntimeException, createChannel, disconnect, getRemoteHostName, getRemoteServiceVersion, getRemoteSockAddress, isClosed, isConnected, retryRPC, retryRPC
public RetryHandlingJournalMasterClient(MasterClientContext conf)
conf
- master client configurationprotected ServiceType getRemoteServiceType()
getRemoteServiceType
in class AbstractClient
protected String getServiceName()
getServiceName
in class AbstractClient
protected long getServiceVersion()
getServiceVersion
in class AbstractClient
protected void afterConnect()
AbstractClient
afterConnect
in class AbstractClient
public GetQuorumInfoPResponse getQuorumInfo() throws AlluxioStatusException
JournalMasterClient
getQuorumInfo
in interface JournalMasterClient
AlluxioStatusException
public void removeQuorumServer(NetAddress serverAddress) throws AlluxioStatusException
JournalMasterClient
removeQuorumServer
in interface JournalMasterClient
serverAddress
- server address to remove from quorumAlluxioStatusException
public String transferLeadership(NetAddress newLeaderNetAddress) throws AlluxioStatusException
JournalMasterClient
transferLeadership
in interface JournalMasterClient
newLeaderNetAddress
- server address of the prospective new leaderAlluxioStatusException
public void resetPriorities() throws AlluxioStatusException
JournalMasterClient
resetPriorities
in interface JournalMasterClient
AlluxioStatusException
public GetTransferLeaderMessagePResponse getTransferLeaderMessage(String transferId) throws AlluxioStatusException
JournalMasterClient
getTransferLeaderMessage
in interface JournalMasterClient
transferId
- the guid of transferLeader commandAlluxioStatusException
Copyright © 2023. All Rights Reserved.