public class JobServiceImpl extends Object implements JobService
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_LOCK_EXPIRATION_PERIOD |
static Integer |
JOB_DEFAULT_PRIORITY |
| Constructor and Description |
|---|
JobServiceImpl(TaskanaEngine taskanaEngine,
JobMapper jobMapper) |
| Modifier and Type | Method and Description |
|---|---|
ScheduledJob |
createJob(ScheduledJob job)
Create a schedule a new job.
|
void |
deleteJob(ScheduledJob job) |
List<ScheduledJob> |
findJobsToRun() |
ScheduledJob |
lockJob(ScheduledJob job,
String owner) |
public static final Integer JOB_DEFAULT_PRIORITY
public static final long DEFAULT_LOCK_EXPIRATION_PERIOD
public JobServiceImpl(TaskanaEngine taskanaEngine, JobMapper jobMapper)
public ScheduledJob createJob(ScheduledJob job)
JobServicecreateJob in interface JobServicejob - ScheduledJob The job to be created.ScheduledJob The created job.public ScheduledJob lockJob(ScheduledJob job, String owner)
public List<ScheduledJob> findJobsToRun()
public void deleteJob(ScheduledJob job)
Copyright © 2018. All rights reserved.