public class RetryHandlingJournalMasterClient extends AbstractMasterClient implements JournalMasterClient
AbstractClient.RpcCallable<V>
mAddress, mChannel, mClosed, mConnected, mContext, 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() |
void |
removeQuorumServer(NetAddress serverAddress)
Removes a server from journal quorum.
|
void |
resetPriorities()
Resets RaftPeer priorities.
|
void |
transferLeadership(NetAddress newLeaderNetAddress)
Initiates changing the leading master of the quorum.
|
getAddress, getConfAddress
afterDisconnect, beforeConnect, beforeDisconnect, checkVersion, close, connect, disconnect, getRemoteServiceVersion, 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 void 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
Copyright © 2023. All Rights Reserved.