@ThreadSafe public final class RetryHandlingMetaMasterMasterClient extends AbstractMasterClient
AbstractClient.RpcCallable<V>mAddress, mChannel, mClosed, mConfAddress, mConnected, mContext, mServiceVersion, mVersionService| Constructor and Description |
|---|
RetryHandlingMetaMasterMasterClient(MasterClientContext conf)
Creates a instance of
RetryHandlingMetaMasterMasterClient. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterConnect() |
long |
getId(Address address)
Returns a master id for a master address.
|
protected ServiceType |
getRemoteServiceType() |
protected java.lang.String |
getServiceName() |
protected long |
getServiceVersion() |
MetaCommand |
heartbeat(long masterId)
Sends a heartbeat to the leader master.
|
void |
register(long masterId,
java.util.List<ConfigProperty> configList)
Registers with the leader master.
|
getAddress, getConfAddressafterDisconnect, beforeConnect, beforeDisconnect, checkVersion, close, connect, disconnect, getRemoteServiceVersion, isClosed, isConnected, retryRPC, retryRPCpublic RetryHandlingMetaMasterMasterClient(MasterClientContext conf)
RetryHandlingMetaMasterMasterClient.conf - master client configurationprotected ServiceType getRemoteServiceType()
getRemoteServiceType in class AbstractClientprotected java.lang.String getServiceName()
getServiceName in class AbstractClientprotected long getServiceVersion()
getServiceVersion in class AbstractClientprotected void afterConnect()
throws java.io.IOException
afterConnect in class AbstractClientjava.io.IOExceptionpublic long getId(Address address) throws java.io.IOException
address - the address to get a master id forjava.io.IOExceptionpublic MetaCommand heartbeat(long masterId) throws java.io.IOException
masterId - the master idjava.io.IOExceptionpublic void register(long masterId,
java.util.List<ConfigProperty> configList)
throws java.io.IOException
masterId - the master id of the standby master registeringconfigList - the configuration of this masterjava.io.IOExceptionCopyright © 2019. All Rights Reserved.