@ThreadSafe public final class RetryHandlingJobMasterMasterClient extends AbstractJobMasterClient
AbstractClient.RpcCallable<V>
mConfAddress
mAlwaysEnableTLS, mChannel, mClosed, mConnected, mContext, mServerAddress, mServiceVersion, mVersionService
Constructor and Description |
---|
RetryHandlingJobMasterMasterClient(JobMasterClientContext conf)
Creates a instance of
RetryHandlingJobMasterMasterClient . |
Modifier and Type | Method and Description |
---|---|
protected void |
afterConnect()
This method is called after the connection is made to the remote.
|
void |
connect()
Connects with the remote.
|
long |
getId(Address address)
Returns a master id for a master address.
|
protected ServiceType |
getRemoteServiceType() |
protected String |
getServiceName() |
protected long |
getServiceVersion() |
JobMasterMetaCommand |
heartbeat(long masterId)
Sends a heartbeat to the leader master.
|
void |
register(long masterId)
Registers with the leader master.
|
getConfAddress
afterDisconnect, beforeConnect, queryGrpcServerAddress
beforeDisconnect, checkVersion, close, connectWithRuntimeException, createChannel, disconnect, getRemoteHostName, getRemoteServiceVersion, getRemoteSockAddress, isClosed, isConnected, retryRPC, retryRPC
public RetryHandlingJobMasterMasterClient(JobMasterClientContext conf)
RetryHandlingJobMasterMasterClient
.conf
- master client configurationpublic void connect() throws AlluxioStatusException
AbstractClient
connect
in interface Client
connect
in class AbstractClient
AlluxioStatusException
protected 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 long getId(Address address) throws IOException
address
- the address to get a master id forIOException
public JobMasterMetaCommand heartbeat(long masterId) throws IOException
masterId
- the master idIOException
public void register(long masterId) throws IOException
masterId
- the master id of the standby master registeringIOException
Copyright © 2023. All Rights Reserved.