public final class JobMasterClientRestServiceHandler
extends java.lang.Object
| Constructor and Description |
|---|
JobMasterClientRestServiceHandler(javax.servlet.ServletContext context)
Creates a new instance of
JobMasterClientRestServiceHandler. |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
cancel(long jobId)
Cancels a job.
|
javax.ws.rs.core.Response |
getServiceName() |
javax.ws.rs.core.Response |
getServiceVersion() |
javax.ws.rs.core.Response |
getStatus(long jobId)
Gets the job status.
|
javax.ws.rs.core.Response |
list(java.util.List<java.lang.String> statusList,
java.lang.String name)
Lists all the jobs in the history.
|
javax.ws.rs.core.Response |
run(JobConfig jobConfig)
Runs a job.
|
public JobMasterClientRestServiceHandler(@Context
javax.servlet.ServletContext context)
JobMasterClientRestServiceHandler.context - context for the servletpublic javax.ws.rs.core.Response getServiceName()
public javax.ws.rs.core.Response getServiceVersion()
public javax.ws.rs.core.Response cancel(long jobId)
jobId - the id of the job to cancelpublic javax.ws.rs.core.Response getStatus(long jobId)
jobId - the job idpublic javax.ws.rs.core.Response list(java.util.List<java.lang.String> statusList,
java.lang.String name)
statusList - the target status of jobsname - the name of jobspublic javax.ws.rs.core.Response run(JobConfig jobConfig)
jobConfig - the configuration of the jobCopyright © 2023. All Rights Reserved.