@ThreadSafe public final class RetryHandlingJobMasterClient extends AbstractMasterClient implements JobMasterClient
AbstractClient.RpcCallable<V>JobMasterClient.FactorymAddress, mChannel, mClosed, mConfAddress, 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() |
void |
cancel(long jobId)
Cancels the given job.
|
JobServiceSummary |
getJobServiceSummary()
Gets the job service summary.
|
protected ServiceType |
getRemoteServiceType() |
protected java.lang.String |
getServiceName() |
protected long |
getServiceVersion() |
JobInfo |
getStatus(long jobId)
Gets the status of the given job.
|
java.util.List<java.lang.Long> |
list() |
long |
run(JobConfig jobConfig)
Starts a job based on the given configuration.
|
getAddress, getConfAddressafterDisconnect, 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 - 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 void cancel(long jobId)
throws java.io.IOException
JobMasterClientcancel in interface JobMasterClientjobId - the job idjava.io.IOExceptionpublic JobInfo getStatus(long jobId) throws java.io.IOException
JobMasterClientgetStatus in interface JobMasterClientjobId - the job idjava.io.IOExceptionpublic JobServiceSummary getJobServiceSummary() throws java.io.IOException
JobMasterClientgetJobServiceSummary in interface JobMasterClientjava.io.IOExceptionpublic java.util.List<java.lang.Long> list()
throws java.io.IOException
list in interface JobMasterClientjava.io.IOExceptionpublic long run(JobConfig jobConfig) throws java.io.IOException
JobMasterClientrun in interface JobMasterClientjobConfig - the job configurationjava.io.IOExceptionCopyright © 2020. All Rights Reserved.