@ThreadSafe public final class RetryHandlingJobMasterClient extends AbstractJobMasterClient implements JobMasterClient
AbstractClient.RpcCallable<V>JobMasterClient.FactorymConfAddressmAddress, mChannel, mClosed, mConnected, mContext, mServiceVersion, mVersionService| Constructor and Description |
|---|
RetryHandlingJobMasterClient(JobMasterClientContext conf)
Creates a new job master client.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterConnect() |
protected ServiceType |
getRemoteServiceType() |
protected java.lang.String |
getServiceName() |
protected long |
getServiceVersion() |
java.util.List<JobCommand> |
heartbeat(JobWorkerHealth jobWorkerHealth,
java.util.List<JobInfo> taskInfoList)
Periodic heartbeats to update the tasks' status from a worker, and returns the commands.
|
long |
registerWorker(WorkerNetAddress address)
Returns a worker id for a workers net address.
|
getConfAddressgetAddressafterDisconnect, beforeConnect, beforeDisconnect, checkVersion, close, connect, disconnect, getRemoteServiceVersion, isClosed, isConnected, retryRPC, retryRPCclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnect, disconnect, getAddress, getConfAddress, isClosed, isConnectedpublic RetryHandlingJobMasterClient(JobMasterClientContext conf)
conf - job 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()
afterConnect in class AbstractClientpublic long registerWorker(WorkerNetAddress address) throws java.io.IOException
JobMasterClientregisterWorker in interface JobMasterClientaddress - the net address to get a worker id forjava.io.IOException - if an I/O error occurspublic java.util.List<JobCommand> heartbeat(JobWorkerHealth jobWorkerHealth, java.util.List<JobInfo> taskInfoList) throws java.io.IOException
JobMasterClientheartbeat in interface JobMasterClientjobWorkerHealth - the job worker infotaskInfoList - the list of the task informationjava.io.IOException - if an I/O error occursCopyright © 2022. All Rights Reserved.