@ThreadSafe public abstract class AbstractJobMasterClient extends AbstractMasterClient
AbstractClient.RpcCallable<V>
Modifier and Type | Field and Description |
---|---|
protected InetSocketAddress |
mConfAddress
Address to load configuration, which may differ from
mAddress . |
mChannel, mClosed, mConnected, mContext, mServerAddress, mServiceVersion, mVersionService
Constructor and Description |
---|
AbstractJobMasterClient(MasterClientContext clientConf)
Creates a new master client base.
|
AbstractJobMasterClient(MasterClientContext clientConf,
java.util.function.Supplier<RetryPolicy> retryPolicySupplier)
Creates a new master client base.
|
Modifier and Type | Method and Description |
---|---|
InetSocketAddress |
getConfAddress()
By default, return the same underlying address as
AbstractClient.getRemoteSockAddress() . |
afterDisconnect, beforeConnect, queryGrpcServerAddress
afterConnect, beforeDisconnect, checkVersion, close, connect, connectWithRuntimeException, disconnect, getRemoteHostName, getRemoteServiceType, getRemoteServiceVersion, getRemoteSockAddress, getServiceName, getServiceVersion, isClosed, isConnected, retryRPC, retryRPC
protected InetSocketAddress mConfAddress
mAddress
.public AbstractJobMasterClient(MasterClientContext clientConf)
clientConf
- master client configurationpublic AbstractJobMasterClient(MasterClientContext clientConf, java.util.function.Supplier<RetryPolicy> retryPolicySupplier)
clientConf
- master client configurationretryPolicySupplier
- retry policy to usepublic InetSocketAddress getConfAddress() throws UnavailableException
AbstractClient
AbstractClient.getRemoteSockAddress()
.
Child classes should override this implementation if they intend to have different
address to fetch configuration.getConfAddress
in interface Client
getConfAddress
in class AbstractMasterClient
UnavailableException
- if address cannot be determinedCopyright © 2023. All Rights Reserved.