|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.quartz.impl.RemoteScheduler
An implementation of the Scheduler interface that remotely
proxies all method calls to the equivalent call on a given
QuartzScheduler instance, via RMI.
Scheduler,
QuartzScheduler,
SchedulingContext| Field Summary |
| Fields inherited from interface org.quartz.Scheduler |
DEFAULT_FAIL_OVER_GROUP, DEFAULT_GROUP, DEFAULT_MANUAL_TRIGGERS, DEFAULT_RECOVERY_GROUP |
| Constructor Summary | |
RemoteScheduler(RemotableQuartzScheduler sched,
SchedulingContext schedCtxt)
Construct a RemoteScheduler instance to proxy the given
RemoteableQuartzScheduler instance, and with the given
SchedulingContext. |
|
| Method Summary | |
void |
addCalendar(java.lang.String calName,
Calendar calendar,
boolean replace)
Calls the equivalent method on the 'proxied' QuartzScheduler, passing the SchedulingContext
associated with this instance. |
void |
addGlobalJobListener(JobListener jobListener)
Calls the equivalent method on the 'proxied' QuartzScheduler. |
void |
addGlobalTriggerListener(TriggerListener triggerListener)
Calls the equivalent method on the 'proxied' QuartzScheduler. |
void |
addJob(JobDetail jobDetail,
boolean replace)
Calls the equivalent method on the 'proxied' QuartzScheduler, passing the SchedulingContext
associated with this instance. |
void |
addJobListener(JobListener jobListener)
Calls the equivalent method on the 'proxied' QuartzScheduler. |
void |
addSchedulerListener(SchedulerListener schedulerListener)
Calls the equivalent method on the 'proxied' QuartzScheduler. |
void |
addTriggerListener(TriggerListener triggerListener)
Calls the equivalent method on the 'proxied' QuartzScheduler. |
boolean |
deleteCalendar(java.lang.String calName)
Calls the equivalent method on the 'proxied' QuartzScheduler, passing the SchedulingContext
associated with this instance. |
boolean |
deleteJob(java.lang.String jobName,
java.lang.String groupName)
Calls the equivalent method on the 'proxied' QuartzScheduler, passing the SchedulingContext
associated with this instance. |
Calendar |
getCalendar(java.lang.String calName)
Calls the equivalent method on the 'proxied' QuartzScheduler, passing the SchedulingContext
associated with this instance. |
java.lang.String[] |
getCalendarNames()
Calls the equivalent method on the 'proxied' QuartzScheduler, passing the SchedulingContext
associated with this instance. |
SchedulerContext |
getContext()
Returns the SchedulerContext of the
Scheduler. |
java.util.List |
getCurrentlyExecutingJobs()
Calls the equivalent method on the 'proxied' QuartzScheduler. |
java.util.List |
getGlobalJobListeners()
Calls the equivalent method on the 'proxied' QuartzScheduler. |
java.util.List |
getGlobalTriggerListeners()
Calls the equivalent method on the 'proxied' QuartzScheduler. |
JobDetail |
getJobDetail(java.lang.String jobName,
java.lang.String jobGroup)
Calls the equivalent method on the 'proxied' QuartzScheduler, passing the SchedulingContext
associated with this instance. |
java.lang.String[] |
getJobGroupNames()
Calls the equivalent method on the 'proxied' QuartzScheduler, passing the SchedulingContext
associated with this instance. |
JobListener |
getJobListener(java.lang.String name)
Calls the equivalent method on the 'proxied' QuartzScheduler. |
java.util.Set |
getJobListenerNames()
Calls the equivalent method on the 'proxied' QuartzScheduler. |
java.lang.String[] |
getJobNames(java.lang.String groupName)
Calls the equivalent method on the 'proxied' QuartzScheduler, passing the SchedulingContext
associated with this instance. |
SchedulerMetaData |
getMetaData()
Get a SchedulerMetaData object describiing the settings
and capabilities of the scheduler instance. |
java.lang.String |
getSchedulerInstanceId()
Returns the instance Id of the Scheduler. |
java.util.List |
getSchedulerListeners()
Calls the equivalent method on the 'proxied' QuartzScheduler. |
java.lang.String |
getSchedulerName()
Returns the name of the Scheduler. |
Trigger |
getTrigger(java.lang.String triggerName,
java.lang.String triggerGroup)
Calls the equivalent method on the 'proxied' QuartzScheduler, passing the SchedulingContext
associated with this instance. |
java.lang.String[] |
getTriggerGroupNames()
Calls the equivalent method on the 'proxied' QuartzScheduler, passing the SchedulingContext
associated with this instance. |
TriggerListener |
getTriggerListener(java.lang.String name)
Calls the equivalent method on the 'proxied' QuartzScheduler. |
java.util.Set |
getTriggerListenerNames()
Calls the equivalent method on the 'proxied' QuartzScheduler. |
java.lang.String[] |
getTriggerNames(java.lang.String groupName)
Calls the equivalent method on the 'proxied' QuartzScheduler, passing the SchedulingContext
associated with this instance. |
Trigger[] |
getTriggersOfJob(java.lang.String jobName,
java.lang.String groupName)
Calls the equivalent method on the 'proxied' QuartzScheduler, passing the SchedulingContext
associated with this instance. |
int |
getTriggerState(java.lang.String triggerName,
java.lang.String triggerGroup)
Calls the equivalent method on the 'proxied' QuartzScheduler, passing the SchedulingContext
associated with this instance. |
boolean |
isPaused()
Calls the equivalent method on the 'proxied' QuartzScheduler. |
boolean |
isShutdown()
Calls the equivalent method on the 'proxied' QuartzScheduler. |
void |
pause()
Calls the equivalent method on the 'proxied' QuartzScheduler. |
void |
pauseAll()
Calls the equivalent method on the 'proxied' QuartzScheduler, passing the SchedulingContext
associated with this instance. |
void |
pauseJob(java.lang.String jobName,
java.lang.String groupName)
Calls the equivalent method on the 'proxied' QuartzScheduler, passing the SchedulingContext
associated with this instance. |
void |
pauseJobGroup(java.lang.String groupName)
Calls the equivalent method on the 'proxied' QuartzScheduler, passing the SchedulingContext
associated with this instance. |
void |
pauseTrigger(java.lang.String triggerName,
java.lang.String groupName)
Calls the equivalent method on the 'proxied' QuartzScheduler, passing the SchedulingContext
associated with this instance. |
void |
pauseTriggerGroup(java.lang.String groupName)
Calls the equivalent method on the 'proxied' QuartzScheduler, passing the SchedulingContext
associated with this instance. |
boolean |
removeGlobalJobListener(JobListener jobListener)
Calls the equivalent method on the 'proxied' QuartzScheduler. |
boolean |
removeGlobalTriggerListener(TriggerListener triggerListener)
Calls the equivalent method on the 'proxied' QuartzScheduler. |
boolean |
removeJobListener(java.lang.String name)
Calls the equivalent method on the 'proxied' QuartzScheduler. |
boolean |
removeSchedulerListener(SchedulerListener schedulerListener)
Calls the equivalent method on the 'proxied' QuartzScheduler. |
boolean |
removeTriggerListener(java.lang.String name)
Calls the equivalent method on the 'proxied' QuartzScheduler. |
void |
resumeAll()
Calls the equivalent method on the 'proxied' QuartzScheduler, passing the SchedulingContext
associated with this instance. |
void |
resumeJob(java.lang.String jobName,
java.lang.String groupName)
Calls the equivalent method on the 'proxied' QuartzScheduler, passing the SchedulingContext
associated with this instance. |
void |
resumeJobGroup(java.lang.String groupName)
Calls the equivalent method on the 'proxied' QuartzScheduler, passing the SchedulingContext
associated with this instance. |
void |
resumeTrigger(java.lang.String triggerName,
java.lang.String groupName)
Calls the equivalent method on the 'proxied' QuartzScheduler, passing the SchedulingContext
associated with this instance. |
void |
resumeTriggerGroup(java.lang.String groupName)
Calls the equivalent method on the 'proxied' QuartzScheduler, passing the SchedulingContext
associated with this instance. |
java.util.Date |
scheduleJob(JobDetail jobDetail,
Trigger trigger)
Calls the equivalent method on the 'proxied' QuartzScheduler, passing the SchedulingContext
associated with this instance. |
java.util.Date |
scheduleJob(Trigger trigger)
Calls the equivalent method on the 'proxied' QuartzScheduler, passing the SchedulingContext
associated with this instance. |
void |
shutdown()
Calls the equivalent method on the 'proxied' QuartzScheduler. |
void |
shutdown(boolean waitForJobsToComplete)
Calls the equivalent method on the 'proxied' QuartzScheduler. |
void |
start()
Calls the equivalent method on the 'proxied' QuartzScheduler. |
void |
triggerJob(java.lang.String jobName,
java.lang.String groupName)
Calls the equivalent method on the 'proxied' QuartzScheduler, passing the SchedulingContext
associated with this instance. |
void |
triggerJobWithVolatileTrigger(java.lang.String jobName,
java.lang.String groupName)
Calls the equivalent method on the 'proxied' QuartzScheduler, passing the SchedulingContext
associated with this instance. |
boolean |
unscheduleJob(java.lang.String triggerName,
java.lang.String groupName)
Calls the equivalent method on the 'proxied' QuartzScheduler, passing the SchedulingContext
associated with this instance. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RemoteScheduler(RemotableQuartzScheduler sched,
SchedulingContext schedCtxt)
Construct a RemoteScheduler instance to proxy the given
RemoteableQuartzScheduler instance, and with the given
SchedulingContext.
| Method Detail |
public java.lang.String getSchedulerName()
throws SchedulerException
Returns the name of the Scheduler.
getSchedulerName in interface SchedulerSchedulerException
public java.lang.String getSchedulerInstanceId()
throws SchedulerException
Returns the instance Id of the Scheduler.
getSchedulerInstanceId in interface SchedulerSchedulerException
public SchedulerMetaData getMetaData()
throws SchedulerException
SchedulerGet a SchedulerMetaData object describiing the settings
and capabilities of the scheduler instance.
Note that the data returned is an 'instantaneous' snap-shot, and that as soon as it's returned, the meta data values may be different.
getMetaData in interface SchedulerSchedulerException
public SchedulerContext getContext()
throws SchedulerException
Returns the SchedulerContext of the
Scheduler.
getContext in interface SchedulerSchedulerException
public void start()
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler.
start in interface SchedulerSchedulerException - if close() has been called, or
there is an error within the Scheduler.Scheduler.pause(),
Scheduler.shutdown()
public void pause()
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler.
pause in interface SchedulerSchedulerExceptionScheduler.start(),
Scheduler.pauseAll()
public boolean isPaused()
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler.
isPaused in interface SchedulerSchedulerException
public void shutdown()
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler.
shutdown in interface SchedulerSchedulerExceptionScheduler.shutdown(boolean)
public void shutdown(boolean waitForJobsToComplete)
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler.
shutdown in interface SchedulerwaitForJobsToComplete - if true the scheduler will not
allow this method to return until all currently executing jobs have
completed.
SchedulerExceptionScheduler.shutdown()
public boolean isShutdown()
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler.
isShutdown in interface SchedulerSchedulerException
public java.util.List getCurrentlyExecutingJobs()
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler.
getCurrentlyExecutingJobs in interface SchedulerSchedulerExceptionJobExecutionContext
public java.util.Date scheduleJob(JobDetail jobDetail,
Trigger trigger)
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler, passing the SchedulingContext
associated with this instance.
scheduleJob in interface SchedulerSchedulerException - if the Job or Trigger cannot be added to the
Scheduler, or there is an internal Scheduler error.
public java.util.Date scheduleJob(Trigger trigger)
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler, passing the SchedulingContext
associated with this instance.
scheduleJob in interface SchedulerSchedulerException - if the indicated Job does not exist, or the
Trigger cannot be added to the Scheduler, or there is an internal
Scheduler error.
public void addJob(JobDetail jobDetail,
boolean replace)
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler, passing the SchedulingContext
associated with this instance.
addJob in interface SchedulerSchedulerException - if there is an internal Scheduler error, or if
the Job is not durable, or a Job with the same name already exists, and
replace is false.
public boolean deleteJob(java.lang.String jobName,
java.lang.String groupName)
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler, passing the SchedulingContext
associated with this instance.
deleteJob in interface SchedulerSchedulerException - if there is an internal Scheduler error.
public boolean unscheduleJob(java.lang.String triggerName,
java.lang.String groupName)
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler, passing the SchedulingContext
associated with this instance.
unscheduleJob in interface SchedulerSchedulerException
public void triggerJob(java.lang.String jobName,
java.lang.String groupName)
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler, passing the SchedulingContext
associated with this instance.
triggerJob in interface SchedulerSchedulerException
public void triggerJobWithVolatileTrigger(java.lang.String jobName,
java.lang.String groupName)
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler, passing the SchedulingContext
associated with this instance.
triggerJobWithVolatileTrigger in interface SchedulerSchedulerException
public void pauseTrigger(java.lang.String triggerName,
java.lang.String groupName)
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler, passing the SchedulingContext
associated with this instance.
pauseTrigger in interface SchedulerSchedulerExceptionScheduler.resumeTrigger(String, String)
public void pauseTriggerGroup(java.lang.String groupName)
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler, passing the SchedulingContext
associated with this instance.
pauseTriggerGroup in interface SchedulerSchedulerExceptionScheduler.resumeTriggerGroup(String)
public void pauseJob(java.lang.String jobName,
java.lang.String groupName)
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler, passing the SchedulingContext
associated with this instance.
pauseJob in interface SchedulerSchedulerExceptionScheduler.resumeJob(String, String)
public void pauseJobGroup(java.lang.String groupName)
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler, passing the SchedulingContext
associated with this instance.
pauseJobGroup in interface SchedulerSchedulerExceptionScheduler.resumeJobGroup(String)
public void resumeTrigger(java.lang.String triggerName,
java.lang.String groupName)
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler, passing the SchedulingContext
associated with this instance.
resumeTrigger in interface SchedulerSchedulerExceptionScheduler.pauseTrigger(String, String)
public void resumeTriggerGroup(java.lang.String groupName)
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler, passing the SchedulingContext
associated with this instance.
resumeTriggerGroup in interface SchedulerSchedulerExceptionScheduler.pauseTriggerGroup(String)
public void resumeJob(java.lang.String jobName,
java.lang.String groupName)
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler, passing the SchedulingContext
associated with this instance.
resumeJob in interface SchedulerSchedulerExceptionScheduler.pauseJob(String, String)
public void resumeJobGroup(java.lang.String groupName)
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler, passing the SchedulingContext
associated with this instance.
resumeJobGroup in interface SchedulerSchedulerExceptionScheduler.pauseJobGroup(String)
public void pauseAll()
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler, passing the SchedulingContext
associated with this instance.
pauseAll in interface SchedulerSchedulerExceptionScheduler.resumeAll(),
Scheduler.pauseTriggerGroup(String),
Scheduler.pause()
public void resumeAll()
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler, passing the SchedulingContext
associated with this instance.
resumeAll in interface SchedulerSchedulerExceptionScheduler.pauseAll()
public java.lang.String[] getJobGroupNames()
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler, passing the SchedulingContext
associated with this instance.
getJobGroupNames in interface SchedulerSchedulerException
public java.lang.String[] getJobNames(java.lang.String groupName)
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler, passing the SchedulingContext
associated with this instance.
getJobNames in interface SchedulerSchedulerException
public Trigger[] getTriggersOfJob(java.lang.String jobName,
java.lang.String groupName)
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler, passing the SchedulingContext
associated with this instance.
getTriggersOfJob in interface SchedulerSchedulerException
public java.lang.String[] getTriggerGroupNames()
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler, passing the SchedulingContext
associated with this instance.
getTriggerGroupNames in interface SchedulerSchedulerException
public java.lang.String[] getTriggerNames(java.lang.String groupName)
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler, passing the SchedulingContext
associated with this instance.
getTriggerNames in interface SchedulerSchedulerException
public JobDetail getJobDetail(java.lang.String jobName,
java.lang.String jobGroup)
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler, passing the SchedulingContext
associated with this instance.
getJobDetail in interface SchedulerSchedulerException
public Trigger getTrigger(java.lang.String triggerName,
java.lang.String triggerGroup)
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler, passing the SchedulingContext
associated with this instance.
getTrigger in interface SchedulerSchedulerException
public int getTriggerState(java.lang.String triggerName,
java.lang.String triggerGroup)
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler, passing the SchedulingContext
associated with this instance.
getTriggerState in interface SchedulerSchedulerExceptionTrigger.STATE_NORMAL,
Trigger.STATE_PAUSED,
Trigger.STATE_COMPLETE,
Trigger.STATE_ERROR,
Trigger.STATE_NONE
public void addCalendar(java.lang.String calName,
Calendar calendar,
boolean replace)
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler, passing the SchedulingContext
associated with this instance.
addCalendar in interface SchedulerSchedulerException - if there is an internal Scheduler error, or
a Calendar with the same name already exists, and replace is
false.
public boolean deleteCalendar(java.lang.String calName)
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler, passing the SchedulingContext
associated with this instance.
deleteCalendar in interface SchedulerSchedulerException - if there is an internal Scheduler error.
public Calendar getCalendar(java.lang.String calName)
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler, passing the SchedulingContext
associated with this instance.
getCalendar in interface SchedulerSchedulerException
public java.lang.String[] getCalendarNames()
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler, passing the SchedulingContext
associated with this instance.
getCalendarNames in interface SchedulerSchedulerException
public void addGlobalJobListener(JobListener jobListener)
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler.
addGlobalJobListener in interface SchedulerSchedulerException
public void addJobListener(JobListener jobListener)
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler.
addJobListener in interface SchedulerSchedulerException
public boolean removeGlobalJobListener(JobListener jobListener)
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler.
removeGlobalJobListener in interface SchedulerSchedulerException
public boolean removeJobListener(java.lang.String name)
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler.
removeJobListener in interface SchedulerSchedulerException
public java.util.List getGlobalJobListeners()
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler.
getGlobalJobListeners in interface SchedulerSchedulerException
public java.util.Set getJobListenerNames()
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler.
getJobListenerNames in interface SchedulerSchedulerException
public JobListener getJobListener(java.lang.String name)
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler.
getJobListener in interface SchedulerSchedulerException
public void addGlobalTriggerListener(TriggerListener triggerListener)
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler.
addGlobalTriggerListener in interface SchedulerSchedulerException
public void addTriggerListener(TriggerListener triggerListener)
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler.
addTriggerListener in interface SchedulerSchedulerException
public boolean removeGlobalTriggerListener(TriggerListener triggerListener)
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler.
removeGlobalTriggerListener in interface SchedulerSchedulerException
public boolean removeTriggerListener(java.lang.String name)
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler.
removeTriggerListener in interface SchedulerSchedulerException
public java.util.List getGlobalTriggerListeners()
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler.
getGlobalTriggerListeners in interface SchedulerSchedulerException
public java.util.Set getTriggerListenerNames()
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler.
getTriggerListenerNames in interface SchedulerSchedulerException
public TriggerListener getTriggerListener(java.lang.String name)
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler.
getTriggerListener in interface SchedulerSchedulerException
public void addSchedulerListener(SchedulerListener schedulerListener)
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler.
addSchedulerListener in interface SchedulerSchedulerException
public boolean removeSchedulerListener(SchedulerListener schedulerListener)
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler.
removeSchedulerListener in interface SchedulerSchedulerException
public java.util.List getSchedulerListeners()
throws SchedulerException
Calls the equivalent method on the 'proxied'
QuartzScheduler.
getSchedulerListeners in interface SchedulerSchedulerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||