use of io.cdap.cdap.internal.app.runtime.schedule.trigger.TriggerInfoContext in project cdap by caskdata.
the class ScheduleTaskRunner method getTriggeringScheduleInfo.
private TriggeringScheduleInfo getTriggeringScheduleInfo(Job job) {
TriggerInfoContext triggerInfoContext = new TriggerInfoContext(job, store);
SatisfiableTrigger trigger = ((SatisfiableTrigger) job.getSchedule().getTrigger());
List<TriggerInfo> triggerInfo = trigger.getTriggerInfos(triggerInfoContext);
ProgramSchedule schedule = job.getSchedule();
return new DefaultTriggeringScheduleInfo(schedule.getName(), schedule.getDescription(), triggerInfo, schedule.getProperties());
}
Aggregations