use of org.quartz.spi.OperableTrigger in project scout.rt by eclipse.
the class JobFutureTask method createQuartzTrigger.
/**
* Creates the Quartz Trigger to fire execution.
*/
protected OperableTrigger createQuartzTrigger(final JobInput input) {
final TriggerBuilder<Trigger> builder = TriggerBuilder.newTrigger().forJob(JobFutureTask.class.getSimpleName());
final ExecutionTrigger executionTrigger = input.getExecutionTrigger();
if (executionTrigger != null) {
builder.startAt(executionTrigger.getStartTime()).endAt(executionTrigger.getEndTime()).withSchedule(executionTrigger.getSchedule());
}
return (OperableTrigger) builder.build();
}
Aggregations