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.
|
java.util.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 java.util.List<java.lang.Long> |
list() |
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.
|
long |
submit(CmdConfig cmdConfig)
Submit a Cmd Job based on the given configuration.
|
connect, disconnect, getConfAddress, getRemoteHostName, getRemoteSockAddress, isClosed, isConnectedvoid cancel(long id)
throws java.io.IOException
id - the job idjava.io.IOExceptionJobInfo getJobStatus(long id) throws java.io.IOException
id - the job idjava.io.IOExceptionJobInfo getJobStatusDetailed(long id) throws java.io.IOException
id - the job idjava.io.IOExceptionJobServiceSummary getJobServiceSummary() throws java.io.IOException
java.io.IOExceptiondefault java.util.List<java.lang.Long> list()
throws java.io.IOException
java.io.IOExceptionjava.util.List<java.lang.Long> list(ListAllPOptions option) throws java.io.IOException
option - list optionsjava.io.IOExceptionjava.util.List<JobInfo> listDetailed() throws java.io.IOException
java.io.IOExceptionlong run(JobConfig jobConfig) throws java.io.IOException
jobConfig - the job configurationjava.io.IOExceptionlong submit(CmdConfig cmdConfig) throws java.io.IOException
cmdConfig - the Cmd job configjava.io.IOExceptionStatus getCmdStatus(long id) throws java.io.IOException
id - the jobControl idjava.io.IOExceptionCmdStatusBlock getCmdStatusDetailed(long id) throws java.io.IOException
id - the jobControl idjava.io.IOExceptionjava.util.List<JobWorkerHealth> getAllWorkerHealth() throws java.io.IOException
java.io.IOExceptionCopyright © 2023. All Rights Reserved.