@Component public class FileIngesterJobScheduler extends Object implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
| 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 |
onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event) |
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)
fileIngest - public void unschedule(String fileIngestId)
fileIngestId - public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>Copyright © 2016. All Rights Reserved.