@ThreadSafe public final class RetryHandlingMetaMasterMasterClient extends AbstractMasterClient
AbstractClient.RpcCallable<V>
mAddress, mClosed, mConnected, mProtocol, mServiceVersion
Constructor and Description |
---|
RetryHandlingMetaMasterMasterClient(MasterClientConfig conf)
Creates a instance of
RetryHandlingMetaMasterMasterClient . |
Modifier and Type | Method and Description |
---|---|
protected void |
afterConnect()
This method is called after the connection is made to the remote.
|
protected AlluxioService.Client |
getClient() |
long |
getId(Address address)
Returns a master id for a master address.
|
protected String |
getServiceName() |
protected long |
getServiceVersion() |
MetaCommand |
heartbeat(long masterId)
Sends a heartbeat to the leader master.
|
void |
register(long masterId,
List<ConfigProperty> configList)
Registers with the leader master.
|
getAddress
afterDisconnect, beforeDisconnect, checkVersion, close, connect, disconnect, isConnected, retryRPC, retryRPC
public RetryHandlingMetaMasterMasterClient(MasterClientConfig conf)
RetryHandlingMetaMasterMasterClient
.conf
- master client configurationprotected AlluxioService.Client getClient()
getClient
in class AbstractClient
protected String getServiceName()
getServiceName
in class AbstractClient
protected long getServiceVersion()
getServiceVersion
in class AbstractClient
protected void afterConnect() throws IOException
AbstractClient
afterConnect
in class AbstractClient
IOException
public long getId(Address address) throws IOException
address
- the address to get a master id forIOException
public MetaCommand heartbeat(long masterId) throws IOException
masterId
- the master idIOException
public void register(long masterId, List<ConfigProperty> configList) throws IOException
masterId
- the master id of the standby master registeringconfigList
- the configuration of this masterIOException
Copyright © 2023. All Rights Reserved.