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