KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > quartz > impl > StdScheduler


1 /*
2  * Copyright 2004-2005 OpenSymphony
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License"); you may not
5  * use this file except in compliance with the License. You may obtain a copy
6  * 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, WITHOUT
12  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13  * License for the specific language governing permissions and limitations
14  * under the License.
15  *
16  */

17
18 /*
19  * Previously Copyright (c) 2001-2004 James House
20  */

21 package org.quartz.impl;
22
23 import java.util.Date JavaDoc;
24 import java.util.List JavaDoc;
25 import java.util.Set JavaDoc;
26
27 import org.quartz.Calendar;
28 import org.quartz.JobDataMap;
29 import org.quartz.JobDetail;
30 import org.quartz.JobListener;
31 import org.quartz.Scheduler;
32 import org.quartz.SchedulerContext;
33 import org.quartz.SchedulerException;
34 import org.quartz.SchedulerListener;
35 import org.quartz.SchedulerMetaData;
36 import org.quartz.Trigger;
37 import org.quartz.TriggerListener;
38 import org.quartz.UnableToInterruptJobException;
39 import org.quartz.core.QuartzScheduler;
40 import org.quartz.core.SchedulingContext;
41 import org.quartz.spi.JobFactory;
42
43 /**
44  * <p>
45  * An implementation of the <code>Scheduler</code> interface that directly
46  * proxies all method calls to the equivalent call on a given <code>QuartzScheduler</code>
47  * instance.
48  * </p>
49  *
50  * @see org.quartz.Scheduler
51  * @see org.quartz.core.QuartzScheduler
52  * @see org.quartz.core.SchedulingContext
53  *
54  * @author James House
55  */

56 public class StdScheduler implements Scheduler {
57
58     /*
59      * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
60      *
61      * Data members.
62      *
63      * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
64      */

65
66     private QuartzScheduler sched;
67
68     private SchedulingContext schedCtxt;
69
70     /*
71      * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
72      *
73      * Constructors.
74      *
75      * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
76      */

77
78     /**
79      * <p>
80      * Construct a <code>StdScheduler</code> instance to proxy the given
81      * <code>QuartzScheduler</code> instance, and with the given <code>SchedulingContext</code>.
82      * </p>
83      */

84     public StdScheduler(QuartzScheduler sched, SchedulingContext schedCtxt) {
85         this.sched = sched;
86         this.schedCtxt = schedCtxt;
87     }
88
89     /*
90      * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
91      *
92      * Interface.
93      *
94      * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
95      */

96
97     /**
98      * <p>
99      * Returns the name of the <code>Scheduler</code>.
100      * </p>
101      */

102     public String JavaDoc getSchedulerName() {
103         return sched.getSchedulerName();
104     }
105
106     /**
107      * <p>
108      * Returns the instance Id of the <code>Scheduler</code>.
109      * </p>
110      */

111     public String JavaDoc getSchedulerInstanceId() {
112         return sched.getSchedulerInstanceId();
113     }
114
115     public SchedulerMetaData getMetaData() {
116         return new SchedulerMetaData(getSchedulerName(),
117                 getSchedulerInstanceId(), getClass(), false, isStarted(),
118                 isInStandbyMode(), isShutdown(), sched.runningSince(),
119                 sched.numJobsExecuted(), sched.getJobStoreClass(),
120                 sched.supportsPersistence(), sched.getThreadPoolClass(),
121                 sched.getThreadPoolSize(), sched.getVersion());
122
123     }
124
125     /**
126      * <p>
127      * Returns the <code>SchedulerContext</code> of the <code>Scheduler</code>.
128      * </p>
129      */

130     public SchedulerContext getContext() throws SchedulerException {
131         return sched.getSchedulerContext();
132     }
133
134     ///////////////////////////////////////////////////////////////////////////
135
///
136
/// Schedululer State Management Methods
137
///
138
///////////////////////////////////////////////////////////////////////////
139

140     /**
141      * <p>
142      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
143      * </p>
144      */

145     public void start() throws SchedulerException {
146         sched.start();
147     }
148
149     /**
150      * <p>
151      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
152      * </p>
153      *
154      * @deprecated
155      * @see #standby()
156      */

157     public void pause() {
158         this.standby();
159     }
160     
161     /**
162      * <p>
163      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
164      * </p>
165      */

166     public void standby() {
167         sched.standby();
168     }
169     
170     /**
171      * Whether the scheduler has been started.
172      *
173      * <p>
174      * Note: This only reflects whether <code>{@link #start()}</code> has ever
175      * been called on this Scheduler, so it will return <code>true</code> even
176      * if the <code>Scheduler</code> is currently in standby mode or has been
177      * since shutdown.
178      * </p>
179      *
180      * @see #start()
181      * @see #isShutdown()
182      * @see #isInStandbyMode()
183      */

184     public boolean isStarted() {
185         return (sched.runningSince() != null);
186     }
187     
188     /**
189      * <p>
190      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
191      * </p>
192      */

193     public boolean isInStandbyMode() {
194         return sched.isInStandbyMode();
195     }
196
197     /**
198      * @deprecated
199      */

200     public boolean isPaused() {
201         return isInStandbyMode();
202     }
203
204     /**
205      * <p>
206      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
207      * </p>
208      */

209     public void shutdown() {
210         sched.shutdown();
211     }
212
213     /**
214      * <p>
215      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
216      * </p>
217      */

218     public void shutdown(boolean waitForJobsToComplete) {
219         sched.shutdown(waitForJobsToComplete);
220     }
221
222     /**
223      * <p>
224      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
225      * </p>
226      */

227     public boolean isShutdown() {
228         return sched.isShutdown();
229     }
230
231     /**
232      * <p>
233      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
234      * </p>
235      */

236     public List JavaDoc getCurrentlyExecutingJobs() {
237         return sched.getCurrentlyExecutingJobs();
238     }
239
240     ///////////////////////////////////////////////////////////////////////////
241
///
242
/// Scheduling-related Methods
243
///
244
///////////////////////////////////////////////////////////////////////////
245

246     /**
247      * <p>
248      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
249      * passing the <code>SchedulingContext</code> associated with this
250      * instance.
251      * </p>
252      */

253     public Date JavaDoc scheduleJob(JobDetail jobDetail, Trigger trigger)
254         throws SchedulerException {
255         return sched.scheduleJob(schedCtxt, jobDetail, trigger);
256     }
257
258     /**
259      * <p>
260      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
261      * passing the <code>SchedulingContext</code> associated with this
262      * instance.
263      * </p>
264      */

265     public Date JavaDoc scheduleJob(Trigger trigger) throws SchedulerException {
266         return sched.scheduleJob(schedCtxt, trigger);
267     }
268
269     /**
270      * <p>
271      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
272      * passing the <code>SchedulingContext</code> associated with this
273      * instance.
274      * </p>
275      */

276     public void addJob(JobDetail jobDetail, boolean replace)
277         throws SchedulerException {
278         sched.addJob(schedCtxt, jobDetail, replace);
279     }
280
281     /**
282      * <p>
283      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
284      * passing the <code>SchedulingContext</code> associated with this
285      * instance.
286      * </p>
287      */

288     public boolean deleteJob(String JavaDoc jobName, String JavaDoc groupName)
289         throws SchedulerException {
290         return sched.deleteJob(schedCtxt, jobName, groupName);
291     }
292
293     /**
294      * <p>
295      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
296      * passing the <code>SchedulingContext</code> associated with this
297      * instance.
298      * </p>
299      */

300     public boolean unscheduleJob(String JavaDoc triggerName, String JavaDoc groupName)
301         throws SchedulerException {
302         return sched.unscheduleJob(schedCtxt, triggerName, groupName);
303     }
304     
305     /**
306      * <p>
307      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
308      * passing the <code>SchedulingContext</code> associated with this
309      * instance.
310      * </p>
311      */

312     public Date JavaDoc rescheduleJob(String JavaDoc triggerName,
313             String JavaDoc groupName, Trigger newTrigger) throws SchedulerException {
314         return sched.rescheduleJob(schedCtxt, triggerName, groupName, newTrigger);
315     }
316
317     /**
318      * <p>
319      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
320      * passing the <code>SchedulingContext</code> associated with this
321      * instance.
322      * </p>
323      */

324     public void triggerJob(String JavaDoc jobName, String JavaDoc groupName)
325         throws SchedulerException {
326         triggerJob(jobName, groupName, null);
327     }
328     
329     /**
330      * <p>
331      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
332      * passing the <code>SchedulingContext</code> associated with this
333      * instance.
334      * </p>
335      */

336     public void triggerJob(String JavaDoc jobName, String JavaDoc groupName, JobDataMap data)
337         throws SchedulerException {
338         sched.triggerJob(schedCtxt, jobName, groupName, data);
339     }
340
341     /**
342      * <p>
343      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
344      * passing the <code>SchedulingContext</code> associated with this
345      * instance.
346      * </p>
347      */

348     public void triggerJobWithVolatileTrigger(String JavaDoc jobName, String JavaDoc groupName)
349         throws SchedulerException {
350         triggerJobWithVolatileTrigger(jobName, groupName, null);
351     }
352
353     /**
354      * <p>
355      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
356      * passing the <code>SchedulingContext</code> associated with this
357      * instance.
358      * </p>
359      */

360     public void triggerJobWithVolatileTrigger(String JavaDoc jobName, String JavaDoc groupName, JobDataMap data)
361         throws SchedulerException {
362         sched.triggerJobWithVolatileTrigger(schedCtxt, jobName, groupName, data);
363     }
364
365     /**
366      * <p>
367      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
368      * passing the <code>SchedulingContext</code> associated with this
369      * instance.
370      * </p>
371      */

372     public void pauseTrigger(String JavaDoc triggerName, String JavaDoc groupName)
373         throws SchedulerException {
374         sched.pauseTrigger(schedCtxt, triggerName, groupName);
375     }
376
377     /**
378      * <p>
379      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
380      * passing the <code>SchedulingContext</code> associated with this
381      * instance.
382      * </p>
383      */

384     public void pauseTriggerGroup(String JavaDoc groupName) throws SchedulerException {
385         sched.pauseTriggerGroup(schedCtxt, groupName);
386     }
387
388     /**
389      * <p>
390      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
391      * passing the <code>SchedulingContext</code> associated with this
392      * instance.
393      * </p>
394      */

395     public void pauseJob(String JavaDoc jobName, String JavaDoc groupName)
396         throws SchedulerException {
397         sched.pauseJob(schedCtxt, jobName, groupName);
398     }
399
400     /**
401      * @see org.quartz.Scheduler#getPausedTriggerGroups()
402      */

403     public Set JavaDoc getPausedTriggerGroups() throws SchedulerException {
404         return sched.getPausedTriggerGroups(schedCtxt);
405     }
406     
407     /**
408      * <p>
409      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
410      * passing the <code>SchedulingContext</code> associated with this
411      * instance.
412      * </p>
413      */

414     public void pauseJobGroup(String JavaDoc groupName) throws SchedulerException {
415         sched.pauseJobGroup(schedCtxt, groupName);
416     }
417
418     /**
419      * <p>
420      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
421      * passing the <code>SchedulingContext</code> associated with this
422      * instance.
423      * </p>
424      */

425     public void resumeTrigger(String JavaDoc triggerName, String JavaDoc groupName)
426         throws SchedulerException {
427         sched.resumeTrigger(schedCtxt, triggerName, groupName);
428     }
429
430     /**
431      * <p>
432      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
433      * passing the <code>SchedulingContext</code> associated with this
434      * instance.
435      * </p>
436      */

437     public void resumeTriggerGroup(String JavaDoc groupName) throws SchedulerException {
438         sched.resumeTriggerGroup(schedCtxt, groupName);
439     }
440
441     /**
442      * <p>
443      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
444      * passing the <code>SchedulingContext</code> associated with this
445      * instance.
446      * </p>
447      */

448     public void resumeJob(String JavaDoc jobName, String JavaDoc groupName)
449         throws SchedulerException {
450         sched.resumeJob(schedCtxt, jobName, groupName);
451     }
452
453     /**
454      * <p>
455      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
456      * passing the <code>SchedulingContext</code> associated with this
457      * instance.
458      * </p>
459      */

460     public void resumeJobGroup(String JavaDoc groupName) throws SchedulerException {
461         sched.resumeJobGroup(schedCtxt, groupName);
462     }
463
464     /**
465      * <p>
466      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
467      * passing the <code>SchedulingContext</code> associated with this
468      * instance.
469      * </p>
470      */

471     public void pauseAll() throws SchedulerException {
472         sched.pauseAll(schedCtxt);
473     }
474
475     /**
476      * <p>
477      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
478      * passing the <code>SchedulingContext</code> associated with this
479      * instance.
480      * </p>
481      */

482     public void resumeAll() throws SchedulerException {
483         sched.resumeAll(schedCtxt);
484     }
485
486     /**
487      * <p>
488      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
489      * passing the <code>SchedulingContext</code> associated with this
490      * instance.
491      * </p>
492      */

493     public String JavaDoc[] getJobGroupNames() throws SchedulerException {
494         return sched.getJobGroupNames(schedCtxt);
495     }
496
497     /**
498      * <p>
499      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
500      * passing the <code>SchedulingContext</code> associated with this
501      * instance.
502      * </p>
503      */

504     public Trigger[] getTriggersOfJob(String JavaDoc jobName, String JavaDoc groupName)
505         throws SchedulerException {
506         return sched.getTriggersOfJob(schedCtxt, jobName, groupName);
507     }
508
509     /**
510      * <p>
511      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
512      * passing the <code>SchedulingContext</code> associated with this
513      * instance.
514      * </p>
515      */

516     public String JavaDoc[] getJobNames(String JavaDoc groupName) throws SchedulerException {
517         return sched.getJobNames(schedCtxt, groupName);
518     }
519
520     /**
521      * <p>
522      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
523      * passing the <code>SchedulingContext</code> associated with this
524      * instance.
525      * </p>
526      */

527     public String JavaDoc[] getTriggerGroupNames() throws SchedulerException {
528         return sched.getTriggerGroupNames(schedCtxt);
529     }
530
531     /**
532      * <p>
533      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
534      * passing the <code>SchedulingContext</code> associated with this
535      * instance.
536      * </p>
537      */

538     public String JavaDoc[] getTriggerNames(String JavaDoc groupName) throws SchedulerException {
539         return sched.getTriggerNames(schedCtxt, groupName);
540     }
541
542     /**
543      * <p>
544      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
545      * passing the <code>SchedulingContext</code> associated with this
546      * instance.
547      * </p>
548      */

549     public JobDetail getJobDetail(String JavaDoc jobName, String JavaDoc jobGroup)
550         throws SchedulerException {
551         return sched.getJobDetail(schedCtxt, jobName, jobGroup);
552     }
553
554     /**
555      * <p>
556      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
557      * passing the <code>SchedulingContext</code> associated with this
558      * instance.
559      * </p>
560      */

561     public Trigger getTrigger(String JavaDoc triggerName, String JavaDoc triggerGroup)
562         throws SchedulerException {
563         return sched.getTrigger(schedCtxt, triggerName, triggerGroup);
564     }
565
566     /**
567      * <p>
568      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
569      * passing the <code>SchedulingContext</code> associated with this
570      * instance.
571      * </p>
572      */

573     public int getTriggerState(String JavaDoc triggerName, String JavaDoc triggerGroup)
574         throws SchedulerException {
575         return sched.getTriggerState(schedCtxt, triggerName, triggerGroup);
576     }
577
578     /**
579      * <p>
580      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
581      * passing the <code>SchedulingContext</code> associated with this
582      * instance.
583      * </p>
584      */

585     public void addCalendar(String JavaDoc calName, Calendar calendar, boolean replace, boolean updateTriggers)
586         throws SchedulerException {
587         sched.addCalendar(schedCtxt, calName, calendar, replace, updateTriggers);
588     }
589
590     /**
591      * <p>
592      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
593      * passing the <code>SchedulingContext</code> associated with this
594      * instance.
595      * </p>
596      */

597     public boolean deleteCalendar(String JavaDoc calName) throws SchedulerException {
598         return sched.deleteCalendar(schedCtxt, calName);
599     }
600
601     /**
602      * <p>
603      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
604      * passing the <code>SchedulingContext</code> associated with this
605      * instance.
606      * </p>
607      */

608     public Calendar getCalendar(String JavaDoc calName) throws SchedulerException {
609         return sched.getCalendar(schedCtxt, calName);
610     }
611
612     /**
613      * <p>
614      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
615      * passing the <code>SchedulingContext</code> associated with this
616      * instance.
617      * </p>
618      */

619     public String JavaDoc[] getCalendarNames() throws SchedulerException {
620         return sched.getCalendarNames(schedCtxt);
621     }
622
623     ///////////////////////////////////////////////////////////////////////////
624
///
625
/// Listener-related Methods
626
///
627
///////////////////////////////////////////////////////////////////////////
628

629     /**
630      * <p>
631      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
632      * </p>
633      */

634     public void addGlobalJobListener(JobListener jobListener) {
635         sched.addGlobalJobListener(jobListener);
636     }
637
638     /**
639      * <p>
640      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
641      * </p>
642      */

643     public void addJobListener(JobListener jobListener) {
644         sched.addJobListener(jobListener);
645     }
646
647     /**
648      * <p>
649      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
650      * </p>
651      * @deprecated Use <code>{@link #removeGlobalJobListener(String)}</code>
652      */

653     public boolean removeGlobalJobListener(JobListener jobListener) {
654         return sched.removeGlobalJobListener(
655             (jobListener == null) ? null : jobListener.getName());
656     }
657
658     /**
659      * <p>
660      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
661      * </p>
662      */

663     public boolean removeGlobalJobListener(String JavaDoc name) {
664         return sched.removeGlobalJobListener(name);
665     }
666
667     /**
668      * <p>
669      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
670      * </p>
671      */

672     public boolean removeJobListener(String JavaDoc name) {
673         return sched.removeJobListener(name);
674     }
675
676     /**
677      * <p>
678      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
679      * </p>
680      */

681     public List JavaDoc getGlobalJobListeners() {
682         return sched.getGlobalJobListeners();
683     }
684
685     /**
686      * <p>
687      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
688      * </p>
689      */

690     public Set JavaDoc getJobListenerNames() {
691         return sched.getJobListenerNames();
692     }
693
694     /**
695      * <p>
696      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
697      * </p>
698      */

699     public JobListener getGlobalJobListener(String JavaDoc name) {
700         return sched.getGlobalJobListener(name);
701     }
702
703     /**
704      * <p>
705      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
706      * </p>
707      */

708     public JobListener getJobListener(String JavaDoc name) {
709         return sched.getJobListener(name);
710     }
711
712     /**
713      * <p>
714      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
715      * </p>
716      */

717     public void addGlobalTriggerListener(TriggerListener triggerListener) {
718         sched.addGlobalTriggerListener(triggerListener);
719     }
720
721     /**
722      * <p>
723      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
724      * </p>
725      */

726     public void addTriggerListener(TriggerListener triggerListener) {
727         sched.addTriggerListener(triggerListener);
728     }
729
730     /**
731      * <p>
732      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
733      * </p>
734      *
735      * @deprecated Use <code>{@link #removeGlobalTriggerListener(String)}</code>
736      */

737     public boolean removeGlobalTriggerListener(TriggerListener triggerListener) {
738         return sched.removeGlobalTriggerListener(
739             (triggerListener == null) ? null : triggerListener.getName());
740     }
741
742     /**
743      * <p>
744      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
745      * </p>
746      */

747     public boolean removeGlobalTriggerListener(String JavaDoc name) {
748         return sched.removeGlobalTriggerListener(name);
749     }
750
751     /**
752      * <p>
753      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
754      * </p>
755      */

756     public boolean removeTriggerListener(String JavaDoc name) {
757         return sched.removeTriggerListener(name);
758     }
759
760     /**
761      * <p>
762      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
763      * </p>
764      */

765     public List JavaDoc getGlobalTriggerListeners() {
766         return sched.getGlobalTriggerListeners();
767     }
768
769     /**
770      * <p>
771      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
772      * </p>
773      */

774     public Set JavaDoc getTriggerListenerNames() {
775         return sched.getTriggerListenerNames();
776     }
777
778     /**
779      * <p>
780      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
781      * </p>
782      */

783     public TriggerListener getGlobalTriggerListener(String JavaDoc name) {
784         return sched.getGlobalTriggerListener(name);
785     }
786
787     /**
788      * <p>
789      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
790      * </p>
791      */

792     public TriggerListener getTriggerListener(String JavaDoc name) {
793         return sched.getTriggerListener(name);
794     }
795
796     /**
797      * <p>
798      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
799      * </p>
800      */

801     public void addSchedulerListener(SchedulerListener schedulerListener) {
802         sched.addSchedulerListener(schedulerListener);
803     }
804
805     /**
806      * <p>
807      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
808      * </p>
809      */

810     public boolean removeSchedulerListener(SchedulerListener schedulerListener) {
811         return sched.removeSchedulerListener(schedulerListener);
812     }
813
814     /**
815      * <p>
816      * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
817      * </p>
818      */

819     public List JavaDoc getSchedulerListeners() {
820         return sched.getSchedulerListeners();
821     }
822
823     public boolean interrupt(String JavaDoc jobName, String JavaDoc groupName) throws UnableToInterruptJobException {
824         return sched.interrupt(schedCtxt, jobName, groupName);
825     }
826
827     /**
828      * @see org.quartz.Scheduler#setJobFactory(org.quartz.spi.JobFactory)
829      */

830     public void setJobFactory(JobFactory factory) throws SchedulerException {
831         sched.setJobFactory(factory);
832     }
833     
834 }
835
Popular Tags