@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() |
void |
cancel(long jobId)
Cancels the given job.
|
protected alluxio.grpc.ServiceType |
getRemoteServiceType() |
protected String |
getServiceName() |
protected long |
getServiceVersion() |
JobInfo |
getStatus(long jobId)
Gets the status of the given job.
|
List<Long> |
list() |
long |
run(JobConfig jobConfig)
Starts a job based on the given configuration.
|
afterDisconnect, beforeDisconnect, checkVersion, close, connect, disconnect, getRemoteServiceVersion, isConnected, retryRPC, retryRPCpublic RetryHandlingJobMasterClient(JobMasterClientContext conf)
conf - 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()
throws IOException
afterConnect in class alluxio.AbstractClientIOExceptionpublic void cancel(long jobId)
throws IOException
JobMasterClientcancel in interface JobMasterClientjobId - the job idIOExceptionpublic JobInfo getStatus(long jobId) throws IOException
JobMasterClientgetStatus in interface JobMasterClientjobId - the job idIOExceptionpublic List<Long> list() throws IOException
list in interface JobMasterClientIOExceptionpublic long run(JobConfig jobConfig) throws IOException
JobMasterClientrun in interface JobMasterClientjobConfig - the job configurationIOExceptionCopyright © 2019. All Rights Reserved.