public final class JobMasterClientRestServiceHandler extends 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()
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()
public javax.ws.rs.core.Response run(JobConfig jobConfig)
jobConfig
- the configuration of the jobCopyright © 2023. All Rights Reserved.