KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > lenya > cms > scheduler > AbstractSchedulerListener


1 /*
2  * Copyright 1999-2004 The Apache Software Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */

17
18 /* $Id: AbstractSchedulerListener.java 42598 2004-03-01 16:18:28Z gregor $ */
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     /**
32      * @see org.quartz.SchedulerListener#jobScheduled(org.quartz.Trigger)
33      */

34     public void jobScheduled(Trigger trigger) {
35         log.debug("Job scheduled");
36         log.debug(" Trigger: [" + trigger + "]");
37     }
38
39     /**
40      * @see org.quartz.SchedulerListener#jobUnscheduled(java.lang.String, java.lang.String)
41      */

42     public void jobUnscheduled(String JavaDoc name, String JavaDoc group) {
43         log.debug("Job unscheduled.");
44         log.debug(" Trigger name: [" + name + "]");
45         log.debug(" Trigger group: [" + group + "]");
46     }
47
48     /**
49      * @see org.quartz.SchedulerListener#triggerFinalized(org.quartz.Trigger)
50      */

51     public void triggerFinalized(Trigger trigger) {
52         log.debug("Trigger finalized.");
53         log.debug(" Trigger: [" + trigger + "]");
54     }
55
56     /**
57      * @see org.quartz.SchedulerListener#triggersPaused(java.lang.String, java.lang.String)
58      */

59     public void triggersPaused(String JavaDoc name, String JavaDoc group) {
60         log.debug("Triggers paused.");
61         log.debug(" Trigger name: [" + name + "]");
62         log.debug(" Trigger group: [" + group + "]");
63     }
64
65     /**
66      * @see org.quartz.SchedulerListener#triggersResumed(java.lang.String, java.lang.String)
67      */

68     public void triggersResumed(String JavaDoc name, String JavaDoc group) {
69         log.debug("Triggers resumed.");
70         log.debug(" Trigger name: [" + name + "]");
71         log.debug(" Trigger group: [" + group + "]");
72     }
73
74     /**
75      * @see org.quartz.SchedulerListener#jobsPaused(java.lang.String, java.lang.String)
76      */

77     public void jobsPaused(String JavaDoc name, String JavaDoc group) {
78         log.debug("Jobs paused.");
79         log.debug(" Job name: [" + name + "]");
80         log.debug(" Job group: [" + group + "]");
81     }
82
83     /**
84      * @see org.quartz.SchedulerListener#jobsResumed(java.lang.String, java.lang.String)
85      */

86     public void jobsResumed(String JavaDoc name, String JavaDoc group) {
87         log.debug("Jobs resumed.");
88         log.debug(" Job name: [" + name + "]");
89         log.debug(" Job group: [" + group + "]");
90     }
91
92     /**
93      * @see org.quartz.SchedulerListener#schedulerError(java.lang.String,
94      * org.quartz.SchedulerException)
95      */

96     public void schedulerError(String JavaDoc message, SchedulerException exception) {
97         log.debug("Scheduler exception occured.");
98         log.debug(" Message: [" + message + "]");
99         log.debug(exception);
100     }
101
102     /**
103      * @see org.quartz.SchedulerListener#schedulerShutdown()
104      */

105     public void schedulerShutdown() {
106         log.debug("Scheduler shut down.");
107     }
108
109 }
110
Popular Tags