KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > quartz > core > RemotableQuartzScheduler


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

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

22 package org.quartz.core;
23
24 import java.rmi.Remote JavaDoc;
25 import java.rmi.RemoteException JavaDoc;
26 import java.util.Date JavaDoc;
27 import java.util.List JavaDoc;
28 import java.util.Set JavaDoc;
29
30 import org.quartz.Calendar;
31 import org.quartz.JobDataMap;
32 import org.quartz.JobDetail;
33 import org.quartz.JobListener;
34 import org.quartz.SchedulerContext;
35 import org.quartz.SchedulerException;
36 import org.quartz.SchedulerListener;
37 import org.quartz.Trigger;
38 import org.quartz.TriggerListener;
39 import org.quartz.UnableToInterruptJobException;
40
41 /**
42  * @author James House
43  */

44 public interface RemotableQuartzScheduler extends Remote JavaDoc {
45
46     /*
47      * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
48      *
49      * Interface.
50      *
51      * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
52      */

53
54     String JavaDoc getSchedulerName() throws RemoteException JavaDoc;
55
56     String JavaDoc getSchedulerInstanceId() throws RemoteException JavaDoc;
57
58     SchedulerContext getSchedulerContext() throws SchedulerException,
59             RemoteException JavaDoc;
60
61     void start() throws SchedulerException, RemoteException JavaDoc;
62
63     void standby() throws RemoteException JavaDoc;
64
65     boolean isInStandbyMode() throws RemoteException JavaDoc;
66
67     void shutdown() throws RemoteException JavaDoc;
68
69     void shutdown(boolean waitForJobsToComplete) throws RemoteException JavaDoc;
70
71     boolean isShutdown() throws RemoteException JavaDoc;
72
73     Date JavaDoc runningSince() throws RemoteException JavaDoc;
74
75     String JavaDoc getVersion() throws RemoteException JavaDoc;
76
77     int numJobsExecuted() throws RemoteException JavaDoc;
78
79     Class JavaDoc getJobStoreClass() throws RemoteException JavaDoc;
80
81     boolean supportsPersistence() throws RemoteException JavaDoc;
82
83     Class JavaDoc getThreadPoolClass() throws RemoteException JavaDoc;
84
85     int getThreadPoolSize() throws RemoteException JavaDoc;
86
87     List JavaDoc getCurrentlyExecutingJobs() throws SchedulerException,
88             RemoteException JavaDoc;
89
90     Date JavaDoc scheduleJob(SchedulingContext ctxt, JobDetail jobDetail,
91             Trigger trigger) throws SchedulerException, RemoteException JavaDoc;
92
93     Date JavaDoc scheduleJob(SchedulingContext ctxt, Trigger trigger)
94         throws SchedulerException, RemoteException JavaDoc;
95
96     void addJob(SchedulingContext ctxt, JobDetail jobDetail,
97             boolean replace) throws SchedulerException, RemoteException JavaDoc;
98
99     boolean deleteJob(SchedulingContext ctxt, String JavaDoc jobName,
100             String JavaDoc groupName) throws SchedulerException, RemoteException JavaDoc;
101
102     boolean unscheduleJob(SchedulingContext ctxt, String JavaDoc triggerName,
103             String JavaDoc groupName) throws SchedulerException, RemoteException JavaDoc;
104
105     Date JavaDoc rescheduleJob(SchedulingContext ctxt, String JavaDoc triggerName,
106             String JavaDoc groupName, Trigger newTrigger) throws SchedulerException, RemoteException JavaDoc;
107         
108     
109     void triggerJob(SchedulingContext ctxt, String JavaDoc jobName,
110             String JavaDoc groupName, JobDataMap data) throws SchedulerException, RemoteException JavaDoc;
111
112     void triggerJobWithVolatileTrigger(SchedulingContext ctxt,
113             String JavaDoc jobName, String JavaDoc groupName, JobDataMap data) throws SchedulerException,
114             RemoteException JavaDoc;
115
116     void pauseTrigger(SchedulingContext ctxt, String JavaDoc triggerName,
117             String JavaDoc groupName) throws SchedulerException, RemoteException JavaDoc;
118
119     void pauseTriggerGroup(SchedulingContext ctxt, String JavaDoc groupName)
120         throws SchedulerException, RemoteException JavaDoc;
121
122     void pauseJob(SchedulingContext ctxt, String JavaDoc jobName,
123             String JavaDoc groupName) throws SchedulerException, RemoteException JavaDoc;
124
125     void pauseJobGroup(SchedulingContext ctxt, String JavaDoc groupName)
126         throws SchedulerException, RemoteException JavaDoc;
127
128     void resumeTrigger(SchedulingContext ctxt, String JavaDoc triggerName,
129             String JavaDoc groupName) throws SchedulerException, RemoteException JavaDoc;
130
131     void resumeTriggerGroup(SchedulingContext ctxt, String JavaDoc groupName)
132         throws SchedulerException, RemoteException JavaDoc;
133
134     Set JavaDoc getPausedTriggerGroups(SchedulingContext ctxt)
135         throws SchedulerException, RemoteException JavaDoc;
136     
137     void resumeJob(SchedulingContext ctxt, String JavaDoc jobName,
138             String JavaDoc groupName) throws SchedulerException, RemoteException JavaDoc;
139
140     void resumeJobGroup(SchedulingContext ctxt, String JavaDoc groupName)
141         throws SchedulerException, RemoteException JavaDoc;
142
143     void pauseAll(SchedulingContext ctxt) throws SchedulerException,
144             RemoteException JavaDoc;
145
146     void resumeAll(SchedulingContext ctxt) throws SchedulerException,
147             RemoteException JavaDoc;
148
149     String JavaDoc[] getJobGroupNames(SchedulingContext ctxt)
150         throws SchedulerException, RemoteException JavaDoc;
151
152     String JavaDoc[] getJobNames(SchedulingContext ctxt, String JavaDoc groupName)
153         throws SchedulerException, RemoteException JavaDoc;
154
155     Trigger[] getTriggersOfJob(SchedulingContext ctxt, String JavaDoc jobName,
156             String JavaDoc groupName) throws SchedulerException, RemoteException JavaDoc;
157
158     String JavaDoc[] getTriggerGroupNames(SchedulingContext ctxt)
159         throws SchedulerException, RemoteException JavaDoc;
160
161     String JavaDoc[] getTriggerNames(SchedulingContext ctxt, String JavaDoc groupName)
162         throws SchedulerException, RemoteException JavaDoc;
163
164     JobDetail getJobDetail(SchedulingContext ctxt, String JavaDoc jobName,
165             String JavaDoc jobGroup) throws SchedulerException, RemoteException JavaDoc;
166
167     Trigger getTrigger(SchedulingContext ctxt, String JavaDoc triggerName,
168             String JavaDoc triggerGroup) throws SchedulerException, RemoteException JavaDoc;
169
170     int getTriggerState(SchedulingContext ctxt, String JavaDoc triggerName,
171             String JavaDoc triggerGroup) throws SchedulerException, RemoteException JavaDoc;
172
173     void addCalendar(SchedulingContext ctxt, String JavaDoc calName,
174             Calendar calendar, boolean replace, boolean updateTriggers) throws SchedulerException,
175             RemoteException JavaDoc;
176
177     boolean deleteCalendar(SchedulingContext ctxt, String JavaDoc calName)
178         throws SchedulerException, RemoteException JavaDoc;
179
180     Calendar getCalendar(SchedulingContext ctxt, String JavaDoc calName)
181         throws SchedulerException, RemoteException JavaDoc;
182
183     String JavaDoc[] getCalendarNames(SchedulingContext ctxt)
184         throws SchedulerException, RemoteException JavaDoc;
185
186     void addGlobalJobListener(JobListener jobListener)
187         throws RemoteException JavaDoc;
188
189     void addJobListener(JobListener jobListener) throws RemoteException JavaDoc;
190
191     boolean removeGlobalJobListener(String JavaDoc name) throws RemoteException JavaDoc;
192
193     boolean removeJobListener(String JavaDoc name) throws RemoteException JavaDoc;
194
195     List JavaDoc getGlobalJobListeners() throws RemoteException JavaDoc;
196
197     Set JavaDoc getJobListenerNames() throws RemoteException JavaDoc;
198
199     JobListener getGlobalJobListener(String JavaDoc name) throws RemoteException JavaDoc;
200
201     JobListener getJobListener(String JavaDoc name) throws RemoteException JavaDoc;
202
203     void addGlobalTriggerListener(TriggerListener triggerListener)
204         throws RemoteException JavaDoc;
205
206     void addTriggerListener(TriggerListener triggerListener)
207         throws RemoteException JavaDoc;
208
209     boolean removeGlobalTriggerListener(String JavaDoc name)
210         throws RemoteException JavaDoc;
211
212     boolean removeTriggerListener(String JavaDoc name) throws RemoteException JavaDoc;
213
214     List JavaDoc getGlobalTriggerListeners() throws RemoteException JavaDoc;
215
216     Set JavaDoc getTriggerListenerNames() throws RemoteException JavaDoc;
217
218     TriggerListener getGlobalTriggerListener(String JavaDoc name)
219         throws RemoteException JavaDoc;
220
221     TriggerListener getTriggerListener(String JavaDoc name)
222         throws RemoteException JavaDoc;
223
224     void addSchedulerListener(SchedulerListener schedulerListener)
225         throws RemoteException JavaDoc;
226
227     boolean removeSchedulerListener(SchedulerListener schedulerListener)
228         throws RemoteException JavaDoc;
229
230     List JavaDoc getSchedulerListeners() throws RemoteException JavaDoc;
231
232     boolean interrupt(SchedulingContext ctxt, String JavaDoc jobName, String JavaDoc groupName) throws UnableToInterruptJobException,RemoteException JavaDoc ;
233 }
234
Popular Tags