1 17 18 19 20 package org.apache.lenya.cms.scheduler; 21 22 import org.apache.log4j.Category; 23 import org.quartz.SchedulerException; 24 import org.quartz.SchedulerListener; 25 import org.quartz.Trigger; 26 27 public class AbstractSchedulerListener implements SchedulerListener { 28 29 private static final Category log = Category.getInstance(AbstractSchedulerListener.class); 30 31 34 public void jobScheduled(Trigger trigger) { 35 log.debug("Job scheduled"); 36 log.debug(" Trigger: [" + trigger + "]"); 37 } 38 39 42 public void jobUnscheduled(String name, String group) { 43 log.debug("Job unscheduled."); 44 log.debug(" Trigger name: [" + name + "]"); 45 log.debug(" Trigger group: [" + group + "]"); 46 } 47 48 51 public void triggerFinalized(Trigger trigger) { 52 log.debug("Trigger finalized."); 53 log.debug(" Trigger: [" + trigger + "]"); 54 } 55 56 59 public void triggersPaused(String name, String group) { 60 log.debug("Triggers paused."); 61 log.debug(" Trigger name: [" + name + "]"); 62 log.debug(" Trigger group: [" + group + "]"); 63 } 64 65 68 public void triggersResumed(String name, String group) { 69 log.debug("Triggers resumed."); 70 log.debug(" Trigger name: [" + name + "]"); 71 log.debug(" Trigger group: [" + group + "]"); 72 } 73 74 77 public void jobsPaused(String name, String group) { 78 log.debug("Jobs paused."); 79 log.debug(" Job name: [" + name + "]"); 80 log.debug(" Job group: [" + group + "]"); 81 } 82 83 86 public void jobsResumed(String name, String group) { 87 log.debug("Jobs resumed."); 88 log.debug(" Job name: [" + name + "]"); 89 log.debug(" Job group: [" + group + "]"); 90 } 91 92 96 public void schedulerError(String message, SchedulerException exception) { 97 log.debug("Scheduler exception occured."); 98 log.debug(" Message: [" + message + "]"); 99 log.debug(exception); 100 } 101 102 105 public void schedulerShutdown() { 106 log.debug("Scheduler shut down."); 107 } 108 109 } 110 | Popular Tags |