1 2 18 19 22 package org.quartz.core; 23 24 import org.quartz.SchedulerException; 25 import org.quartz.Trigger; 26 import org.quartz.spi.SchedulerSignaler; 27 28 34 public class SchedulerSignalerImpl implements SchedulerSignaler { 35 36 43 44 private QuartzScheduler sched; 45 46 53 54 SchedulerSignalerImpl(QuartzScheduler sched) { 55 this.sched = sched; 56 } 57 58 public void notifyTriggerListenersMisfired(Trigger trigger) { 59 try { 60 sched.notifyTriggerListenersMisfired(trigger); 61 } catch (SchedulerException se) { 62 sched.getLog().error( 63 "Error notifying listeners of trigger misfire.", se); 64 sched.notifySchedulerListenersError( 65 "Error notifying listeners of trigger misfire.", se); 66 } 67 } 68 69 76 77 public void signalSchedulingChange() { 78 sched.notifySchedulerThread(); 79 } 80 81 } 82 | Popular Tags |