@ThreadSafe public final class RetryHandlingJobMasterMasterClient extends AbstractJobMasterClient
AbstractClient.RpcCallable<V>mConfAddressmChannel, 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() |
void |
connect() |
long |
getId(Address address)
Returns a master id for a master address.
|
protected ServiceType |
getRemoteServiceType() |
protected java.lang.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.
|
getConfAddressafterDisconnect, beforeConnect, queryGrpcServerAddressbeforeDisconnect, checkVersion, close, connectWithRuntimeException, disconnect, getRemoteHostName, getRemoteServiceVersion, getRemoteSockAddress, isClosed, isConnected, retryRPC, retryRPCpublic RetryHandlingJobMasterMasterClient(JobMasterClientContext conf)
RetryHandlingJobMasterMasterClient.conf - master client configurationpublic void connect()
throws AlluxioStatusException
connect in interface Clientconnect in class AbstractClientAlluxioStatusExceptionprotected 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 long getId(Address address) throws java.io.IOException
address - the address to get a master id forjava.io.IOExceptionpublic JobMasterMetaCommand heartbeat(long masterId) throws java.io.IOException
masterId - the master idjava.io.IOExceptionpublic void register(long masterId)
throws java.io.IOException
masterId - the master id of the standby master registeringjava.io.IOExceptionCopyright © 2024. All Rights Reserved.