cti.setCalendarName(this.calendarName); cti.setPriority(this.priority); cti.setMisfireInstruction(this.misfireInstruction); cti.setDescription(this.description); this.cronTrigger = cti;
/** * Build the actual Trigger -- NOT intended to be invoked by end users, but * will rather be invoked by a TriggerBuilder which this ScheduleBuilder is * given to. * * @see TriggerBuilder#withSchedule(ScheduleBuilder) */ @Override public MutableTrigger build() { CronTriggerImpl ct = new CronTriggerImpl(); ct.setCronExpression(cronExpression); ct.setTimeZone(cronExpression.getTimeZone()); ct.setMisfireInstruction(misfireInstruction); return ct; }
/** * Build the actual Trigger -- NOT intended to be invoked by end users, but * will rather be invoked by a TriggerBuilder which this ScheduleBuilder is * given to. * * @see TriggerBuilder#withSchedule(ScheduleBuilder) */ @Override public MutableTrigger build() { CronTriggerImpl ct = new CronTriggerImpl(); ct.setCronExpression(cronExpression); ct.setTimeZone(cronExpression.getTimeZone()); ct.setMisfireInstruction(misfireInstruction); return ct; }
cti.setCalendarName(this.calendarName); cti.setPriority(this.priority); cti.setMisfireInstruction(this.misfireInstruction); cti.setDescription(this.description); this.cronTrigger = cti;
private void buildReportSchedule() { synchronized (m_lock) { for(Report report : m_configDao.getReports()) { JobDetail detail = null; CronTriggerImpl trigger = null; try { detail = new JobDetailImpl(report.getReportName(), JOB_GROUP, ReportJob.class, false, false); detail.getJobDataMap().put(ReportJob.KEY, report); trigger = new CronTriggerImpl(report.getReportName(), JOB_GROUP, report.getCronSchedule()); trigger.setMisfireInstruction(CronTrigger.MISFIRE_INSTRUCTION_DO_NOTHING); getScheduler().scheduleJob(detail, trigger); } catch (ParseException e) { LOG.error("buildReportSchedule: {}", e.getMessage(), e); } catch (SchedulerException e) { LOG.error("buildReportSchedule: {}", e.getMessage(), e); } } } }
trigger.setMisfireInstruction(CronTrigger.MISFIRE_INSTRUCTION_DO_NOTHING); getScheduler().scheduleJob(detail, trigger);
trigger.setMisfireInstruction(CronTrigger.MISFIRE_INSTRUCTION_DO_NOTHING); getScheduler().scheduleJob(detail, trigger);
cti.setCalendarName(this.calendarName); cti.setPriority(this.priority); cti.setMisfireInstruction(this.misfireInstruction); cti.setDescription(this.description); this.cronTrigger = cti;