@ThreadSafe public final class RetryHandlingJobMasterClient extends AbstractJobMasterClient implements JobMasterClient
AbstractClient.RpcCallable<V>
JobMasterClient.Factory
mConfAddress
mAlwaysEnableTLS, mChannel, mClosed, mConnected, mContext, mServerAddress, mServiceVersion, mVersionService
Constructor and Description |
---|
RetryHandlingJobMasterClient(JobMasterClientContext conf)
Creates a new job master client.
|
Modifier and Type | Method and Description |
---|---|
protected void |
afterConnect()
This method is called after the connection is made to the remote.
|
void |
cancel(long jobId)
Cancels the given job.
|
List<JobMasterStatus> |
getAllMasterStatus()
Gets the status of all job masters in the cluster.
|
List<JobWorkerHealth> |
getAllWorkerHealth()
Gets all worker health.
|
Status |
getCmdStatus(long id)
Gets the status of the given command jobControlId.
|
CmdStatusBlock |
getCmdStatusDetailed(long id)
Gets the detailed status of the given command jobControlId.
|
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 String |
getServiceName() |
protected long |
getServiceVersion() |
List<Long> |
list(ListAllPOptions option) |
List<JobInfo> |
listDetailed() |
long |
run(JobConfig jobConfig)
Starts a plan based on the given configuration.
|
long |
submit(CmdConfig cmdConfig)
Submit a Cmd Job based on the given configuration.
|
getConfAddress
afterDisconnect, beforeConnect, queryGrpcServerAddress
beforeDisconnect, checkVersion, close, connect, connectWithRuntimeException, createChannel, disconnect, getRemoteHostName, getRemoteServiceVersion, getRemoteSockAddress, isClosed, isConnected, retryRPC, retryRPC
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
list
connect, disconnect, getConfAddress, getRemoteHostName, getRemoteSockAddress, isClosed, isConnected
public RetryHandlingJobMasterClient(JobMasterClientContext conf)
conf
- master client configurationprotected ServiceType getRemoteServiceType()
getRemoteServiceType
in class AbstractClient
protected String getServiceName()
getServiceName
in class AbstractClient
protected long getServiceVersion()
getServiceVersion
in class AbstractClient
protected void afterConnect() throws IOException
AbstractClient
afterConnect
in class AbstractClient
IOException
public void cancel(long jobId) throws IOException
JobMasterClient
cancel
in interface JobMasterClient
jobId
- the job idIOException
public JobInfo getJobStatus(long id) throws IOException
JobMasterClient
getJobStatus
in interface JobMasterClient
id
- the job idIOException
public JobInfo getJobStatusDetailed(long id) throws IOException
JobMasterClient
getJobStatusDetailed
in interface JobMasterClient
id
- the job idIOException
public JobServiceSummary getJobServiceSummary() throws IOException
JobMasterClient
getJobServiceSummary
in interface JobMasterClient
IOException
public List<Long> list(ListAllPOptions option) throws IOException
list
in interface JobMasterClient
option
- list optionsIOException
public List<JobInfo> listDetailed() throws IOException
listDetailed
in interface JobMasterClient
IOException
public long run(JobConfig jobConfig) throws IOException
JobMasterClient
run
in interface JobMasterClient
jobConfig
- the job configurationIOException
public long submit(CmdConfig cmdConfig) throws IOException
JobMasterClient
submit
in interface JobMasterClient
cmdConfig
- the Cmd job configIOException
public List<JobWorkerHealth> getAllWorkerHealth() throws IOException
JobMasterClient
getAllWorkerHealth
in interface JobMasterClient
IOException
public List<JobMasterStatus> getAllMasterStatus() throws IOException
JobMasterClient
getAllMasterStatus
in interface JobMasterClient
IOException
public Status getCmdStatus(long id) throws IOException
JobMasterClient
getCmdStatus
in interface JobMasterClient
id
- the jobControl idIOException
public CmdStatusBlock getCmdStatusDetailed(long id) throws IOException
JobMasterClient
getCmdStatusDetailed
in interface JobMasterClient
id
- the jobControl idIOException
Copyright © 2023. All Rights Reserved.