@Component public class FileIngesterJobScheduler extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
JOB_GROUP |
static String |
TRIGGER_GROUP |
| Constructor and Description |
|---|
FileIngesterJobScheduler(org.quartz.Scheduler scheduler,
DataService dataService) |
| Modifier and Type | Method and Description |
|---|---|
void |
runNow(String fileIngestId)
Execute FileIngest job immediately
|
void |
schedule(Entity fileIngest)
Schedule a FileIngest job with a cron expression defined in the entity.
|
void |
unschedule(String fileIngestId)
Remove a job from the scheduler
|
public static final String TRIGGER_GROUP
public static final String JOB_GROUP
@Autowired
public FileIngesterJobScheduler(org.quartz.Scheduler scheduler,
DataService dataService)
public void runNow(String fileIngestId)
fileIngestId - public void schedule(Entity fileIngest)
Reschedules job if the job already exists.
If active is false, it unschedules the job
fileIngest - public void unschedule(String fileIngestId)
fileIngestId - Copyright © 2017. All Rights Reserved.