@ThreadSafe public final class RetryHandlingJobMasterClient extends alluxio.AbstractMasterClient implements JobMasterClient
alluxio.AbstractClient.RpcCallable<V>JobMasterClient.Factory| Constructor and Description |
|---|
RetryHandlingJobMasterClient(JobMasterClientContext conf)
Creates a new job master client.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterConnect() |
protected void |
beforeConnect() |
protected alluxio.grpc.ServiceType |
getRemoteServiceType() |
protected String |
getServiceName() |
protected long |
getServiceVersion() |
List<alluxio.grpc.JobCommand> |
heartbeat(long workerId,
List<alluxio.grpc.TaskInfo> taskInfoList)
Periodic heartbeats to update the tasks' status from a worker, and returns the commands.
|
long |
registerWorker(alluxio.wire.WorkerNetAddress address)
Returns a worker id for a workers net address.
|
afterDisconnect, beforeDisconnect, checkVersion, close, connect, disconnect, getRemoteServiceVersion, isConnected, retryRPC, retryRPCpublic RetryHandlingJobMasterClient(JobMasterClientContext conf)
conf - job master client configurationprotected alluxio.grpc.ServiceType getRemoteServiceType()
getRemoteServiceType in class alluxio.AbstractClientprotected String getServiceName()
getServiceName in class alluxio.AbstractClientprotected long getServiceVersion()
getServiceVersion in class alluxio.AbstractClientprotected void beforeConnect()
throws IOException
beforeConnect in class alluxio.AbstractClientIOExceptionprotected void afterConnect()
afterConnect in class alluxio.AbstractClientpublic long registerWorker(alluxio.wire.WorkerNetAddress address)
throws IOException
JobMasterClientregisterWorker in interface JobMasterClientaddress - the net address to get a worker id forIOException - if an I/O error occurspublic List<alluxio.grpc.JobCommand> heartbeat(long workerId, List<alluxio.grpc.TaskInfo> taskInfoList) throws IOException
JobMasterClientheartbeat in interface JobMasterClientworkerId - the worker idtaskInfoList - the list of the task informationIOException - if an I/O error occursCopyright © 2019. All Rights Reserved.