public interface JobService
| Modifier and Type | Method and Description |
|---|---|
Job |
createAndStartJob(JobCreateRequest jobCreateRequest)
Creates and starts a new job asynchronously.
|
Job |
deleteJob(String jobId,
JobDeleteRequest jobDeleteRequest)
Deletes a currently running job and preserves the job state in history.
|
Job |
getJob(String id,
boolean verbose)
Gets the details of a previously submitted job.
|
JobSummaries |
getJobs(String namespace,
String jobName,
JobStatusEnum jobStatus,
org.joda.time.DateTime startTime,
org.joda.time.DateTime endTime)
Gets a list of job executions based on the specified filter parameters.
|
Job |
signalJob(JobSignalRequest jobSignalRequest)
Signals the job with the receive task.
|
Job |
updateJob(String jobId,
JobUpdateRequest jobUpdateRequest)
Activates or suspends a job execution.
|
Job createAndStartJob(JobCreateRequest jobCreateRequest) throws Exception
jobCreateRequest - the information needed to create the jobException - if any problems were encounteredJob deleteJob(String jobId, JobDeleteRequest jobDeleteRequest) throws Exception
jobId - the job idjobDeleteRequest - the delete requestException - if any problems were encounteredJob getJob(String id, boolean verbose) throws Exception
id - the job idException - if any problems were encounteredJobSummaries getJobs(String namespace, String jobName, JobStatusEnum jobStatus, org.joda.time.DateTime startTime, org.joda.time.DateTime endTime) throws Exception
Gets a list of job executions based on the specified filter parameters.
Jobs' namespace to which you do not have READ permissions to will be omitted from the result.
namespace - an optional namespace filterjobName - an optional job name filterjobStatus - an optional job status filterstartTime - an optional job start time filterendTime - an optional job end time filterException - if any problems were encounteredJob signalJob(JobSignalRequest jobSignalRequest) throws Exception
jobSignalRequest - the information needed to signal the jobExceptionJob updateJob(String jobId, JobUpdateRequest jobUpdateRequest)
jobId - the job idjobUpdateRequest - the job update requestCopyright © 2019. All rights reserved.