@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() |
void |
cancel(long jobId)
Cancels the given job.
|
java.util.List<JobWorkerHealth> |
getAllWorkerHealth()
Gets all worker health.
|
JobServiceSummary |
getJobServiceSummary()
Gets the job service summary.
|
JobInfo |
getJobStatus(long id)
Gets the status of the given job id.
|
JobInfo |
getJobStatusDetailed(long id)
Gets detailed status of the given job id.
|
protected ServiceType |
getRemoteServiceType() |
protected java.lang.String |
getServiceName() |
protected long |
getServiceVersion() |
java.util.List<java.lang.Long> |
list(ListAllPOptions option) |
java.util.List<JobInfo> |
listDetailed() |
long |
run(JobConfig jobConfig)
Starts a plan based on the given configuration.
|
getConfAddressgetAddressafterDisconnect, beforeConnect, beforeDisconnect, checkVersion, close, connect, disconnect, getRemoteServiceVersion, isClosed, isConnected, retryRPC, retryRPCclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitlistconnect, 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 getJobStatus(long id) throws java.io.IOException
JobMasterClientgetJobStatus in interface JobMasterClientid - the job idjava.io.IOExceptionpublic JobInfo getJobStatusDetailed(long id) throws java.io.IOException
JobMasterClientgetJobStatusDetailed in interface JobMasterClientid - the job idjava.io.IOExceptionpublic JobServiceSummary getJobServiceSummary() throws java.io.IOException
JobMasterClientgetJobServiceSummary in interface JobMasterClientjava.io.IOExceptionpublic java.util.List<java.lang.Long> list(ListAllPOptions option) throws java.io.IOException
list in interface JobMasterClientoption - list optionsjava.io.IOExceptionpublic java.util.List<JobInfo> listDetailed() throws java.io.IOException
listDetailed in interface JobMasterClientjava.io.IOExceptionpublic long run(JobConfig jobConfig) throws java.io.IOException
JobMasterClientrun in interface JobMasterClientjobConfig - the job configurationjava.io.IOExceptionpublic java.util.List<JobWorkerHealth> getAllWorkerHealth() throws java.io.IOException
JobMasterClientgetAllWorkerHealth in interface JobMasterClientjava.io.IOExceptionCopyright © 2022. All Rights Reserved.