public interface JobMasterClient extends Client
Modifier and Type | Interface and Description |
---|---|
static class |
JobMasterClient.Factory
Factory for
JobMasterClient . |
Modifier and Type | Method and Description |
---|---|
void |
cancel(long id)
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.
|
default List<Long> |
list() |
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.
|
connect, disconnect, getConfAddress, getRemoteHostName, getRemoteSockAddress, isClosed, isConnected
void cancel(long id) throws IOException
id
- the job idIOException
JobInfo getJobStatus(long id) throws IOException
id
- the job idIOException
JobInfo getJobStatusDetailed(long id) throws IOException
id
- the job idIOException
JobServiceSummary getJobServiceSummary() throws IOException
IOException
default List<Long> list() throws IOException
IOException
List<Long> list(ListAllPOptions option) throws IOException
option
- list optionsIOException
List<JobInfo> listDetailed() throws IOException
IOException
long run(JobConfig jobConfig) throws IOException
jobConfig
- the job configurationIOException
long submit(CmdConfig cmdConfig) throws IOException
cmdConfig
- the Cmd job configIOException
List<JobMasterStatus> getAllMasterStatus() throws IOException
IOException
Status getCmdStatus(long id) throws IOException
id
- the jobControl idIOException
CmdStatusBlock getCmdStatusDetailed(long id) throws IOException
id
- the jobControl idIOException
List<JobWorkerHealth> getAllWorkerHealth() throws IOException
IOException
Copyright © 2023. All Rights Reserved.