@Service @Transactional(value="herdTransactionManager") public class JobServiceImpl extends Object implements JobService
| Constructor and Description |
|---|
JobServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
Job |
createAndStartJob(JobCreateRequest request)
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 jobId,
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.
|
JobSummaries |
getRunningJobsByStartBeforeTime(org.joda.time.DateTime startBeforeTime)
Gets a list of running job executions based on the start before time filter.
|
Job |
signalJob(JobSignalRequest request)
Signals the job with the receive task.
|
Job |
updateJob(String jobId,
JobUpdateRequest jobUpdateRequest)
Activates or suspends a job execution.
|
@NamespacePermission(fields="#request?.namespace", permissions=EXECUTE) public Job createAndStartJob(JobCreateRequest request) throws Exception
JobServicecreateAndStartJob in interface JobServicerequest - the information needed to create the jobException - if any problems were encounteredpublic Job deleteJob(String jobId, JobDeleteRequest jobDeleteRequest) throws Exception
JobServicedeleteJob in interface JobServicejobId - the job idjobDeleteRequest - the delete requestException - if any problems were encounteredpublic Job getJob(String jobId, boolean verbose) throws Exception
JobServicegetJob in interface JobServicejobId - the job idException - if any problems were encounteredpublic JobSummaries getJobs(String namespace, String jobName, JobStatusEnum jobStatus, org.joda.time.DateTime startTime, org.joda.time.DateTime endTime) throws Exception
JobServiceGets 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.
getJobs in interface JobServicenamespace - 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 encounteredpublic JobSummaries getRunningJobsByStartBeforeTime(org.joda.time.DateTime startBeforeTime) throws Exception
JobServiceGets a list of running job executions based on the start before time filter.
getRunningJobsByStartBeforeTime in interface JobServicestartBeforeTime - the job start before time filterException - if any problems were encounteredpublic Job signalJob(JobSignalRequest request) throws Exception
JobServicesignalJob in interface JobServicerequest - the information needed to signal the jobExceptionpublic Job updateJob(String jobId, JobUpdateRequest jobUpdateRequest)
JobServiceupdateJob in interface JobServicejobId - the job idjobUpdateRequest - the job update requestCopyright © 2021. All rights reserved.