|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.quartz.impl.RemoteMBeanScheduler
public abstract class RemoteMBeanScheduler
An implementation of the Scheduler interface that remotely
proxies all method calls to the equivalent call on a given QuartzScheduler
instance, via JMX.
A user must create a subclass to implement the actual connection to the remote
MBeanServer using their application specific connector.
For example .
org.quartz.ee.jmx.jboss.JBoss4RMIRemoteMBeanScheduler
Scheduler,
QuartzScheduler,
org.quartz.core.SchedulingContext| Field Summary |
|---|
| Fields inherited from interface org.quartz.Scheduler |
|---|
DEFAULT_FAIL_OVER_GROUP, DEFAULT_GROUP, DEFAULT_RECOVERY_GROUP, FAILED_JOB_ORIGINAL_TRIGGER_FIRETIME_IN_MILLISECONDS, FAILED_JOB_ORIGINAL_TRIGGER_GROUP, FAILED_JOB_ORIGINAL_TRIGGER_NAME |
| Constructor Summary | |
|---|---|
RemoteMBeanScheduler()
|
|
| Method Summary | |
|---|---|
void |
addCalendar(java.lang.String calName,
Calendar calendar,
boolean replace,
boolean updateTriggers)
Calls the equivalent method on the 'proxied' QuartzScheduler,
passing the SchedulingContext associated with this
instance. |
void |
addJob(JobDetail jobDetail,
boolean replace)
Calls the equivalent method on the 'proxied' QuartzScheduler,
passing the SchedulingContext associated with this
instance. |
boolean |
checkExists(JobKey jobKey)
Calls the equivalent method on the 'proxied' QuartzScheduler. |
boolean |
checkExists(TriggerKey triggerKey)
Calls the equivalent method on the 'proxied' QuartzScheduler. |
void |
clear()
Clears (deletes!) all scheduling data - all Jobs, Triggers
Calendars. |
boolean |
deleteCalendar(java.lang.String calName)
Calls the equivalent method on the 'proxied' QuartzScheduler,
passing the SchedulingContext associated with this
instance. |
boolean |
deleteJob(JobKey jobKey)
Calls the equivalent method on the 'proxied' QuartzScheduler,
passing the SchedulingContext associated with this
instance. |
boolean |
deleteJobs(java.util.List<JobKey> jobKeys)
Delete the identified Jobs from the Scheduler - and any
associated Triggers. |
protected abstract java.lang.Object |
getAttribute(java.lang.String attribute)
Get the given attribute of the remote Scheduler MBean. |
protected abstract javax.management.AttributeList |
getAttributes(java.lang.String[] attributes)
Get the given attributes of the remote Scheduler MBean. |
Calendar |
getCalendar(java.lang.String calName)
Calls the equivalent method on the 'proxied' QuartzScheduler,
passing the SchedulingContext associated with this
instance. |
java.util.List<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<JobExecutionContext> |
getCurrentlyExecutingJobs()
Calls the equivalent method on the 'proxied' QuartzScheduler. |
JobDetail |
getJobDetail(JobKey jobKey)
Calls the equivalent method on the 'proxied' QuartzScheduler,
passing the SchedulingContext associated with this
instance. |
java.util.List<java.lang.String> |
getJobGroupNames()
Calls the equivalent method on the 'proxied' QuartzScheduler,
passing the SchedulingContext associated with this
instance. |
java.util.Set<JobKey> |
getJobKeys(GroupMatcher<JobKey> matcher)
Calls the equivalent method on the 'proxied' QuartzScheduler,
passing the SchedulingContext associated with this
instance. |
ListenerManager |
getListenerManager()
Calls the equivalent method on the 'proxied' QuartzScheduler. |
SchedulerMetaData |
getMetaData()
Get a SchedulerMetaData object describing the settings
and capabilities of the scheduler instance. |
java.util.Set<java.lang.String> |
getPausedTriggerGroups()
Get the names of all groups that are paused. |
java.lang.String |
getSchedulerInstanceId()
Returns the instance Id of the Scheduler. |
java.lang.String |
getSchedulerName()
Returns the name of the Scheduler. |
protected javax.management.ObjectName |
getSchedulerObjectName()
Get the name under which the Scheduler MBean is registered on the remote MBean server. |
Trigger |
getTrigger(TriggerKey triggerKey)
Calls the equivalent method on the 'proxied' QuartzScheduler. |
java.util.List<java.lang.String> |
getTriggerGroupNames()
Calls the equivalent method on the 'proxied' QuartzScheduler,
passing the SchedulingContext associated with this
instance. |
java.util.Set<TriggerKey> |
getTriggerKeys(GroupMatcher<TriggerKey> matcher)
Calls the equivalent method on the 'proxied' QuartzScheduler,
passing the SchedulingContext associated with this
instance. |
java.util.List<Trigger> |
getTriggersOfJob(JobKey jobKey)
Calls the equivalent method on the 'proxied' QuartzScheduler,
passing the SchedulingContext associated with this
instance. |
Trigger.TriggerState |
getTriggerState(TriggerKey triggerKey)
Calls the equivalent method on the 'proxied' QuartzScheduler,
passing the SchedulingContext associated with this
instance. |
abstract void |
initialize()
Initialize this RemoteMBeanScheduler instance, connecting to the remote MBean server. |
boolean |
interrupt(JobKey jobKey)
Request the interruption, within this Scheduler instance, of all currently executing instances of the identified Job, which
must be an implementor of the InterruptableJob interface. |
protected abstract java.lang.Object |
invoke(java.lang.String operationName,
java.lang.Object[] params,
java.lang.String[] signature)
Invoke the given operation on the remote Scheduler MBean. |
boolean |
isInStandbyMode()
Calls the equivalent method on the 'proxied' QuartzScheduler. |
boolean |
isShutdown()
Calls the equivalent method on the 'proxied' QuartzScheduler. |
boolean |
isStarted()
Whether the scheduler has been started. |
void |
pauseAll()
Calls the equivalent method on the 'proxied' QuartzScheduler,
passing the SchedulingContext associated with this
instance. |
void |
pauseJob(JobKey jobKey)
Calls the equivalent method on the 'proxied' QuartzScheduler,
passing the SchedulingContext associated with this
instance. |
void |
pauseJobs(GroupMatcher<JobKey> matcher)
Calls the equivalent method on the 'proxied' QuartzScheduler,
passing the SchedulingContext associated with this
instance. |
void |
pauseTrigger(TriggerKey triggerKey)
Calls the equivalent method on the 'proxied' QuartzScheduler,
passing the SchedulingContext associated with this
instance. |
void |
pauseTriggers(GroupMatcher<TriggerKey> matcher)
Calls the equivalent method on the 'proxied' QuartzScheduler,
passing the SchedulingContext associated with this
instance. |
java.util.Date |
rescheduleJob(TriggerKey triggerKey,
Trigger newTrigger)
Calls the equivalent method on the 'proxied' QuartzScheduler,
passing the SchedulingContext associated with this
instance. |
void |
resumeAll()
Calls the equivalent method on the 'proxied' QuartzScheduler,
passing the SchedulingContext associated with this
instance. |
void |
resumeJob(JobKey jobKey)
Calls the equivalent method on the 'proxied' QuartzScheduler,
passing the SchedulingContext associated with this
instance. |
void |
resumeJobs(GroupMatcher<JobKey> matcher)
Calls the equivalent method on the 'proxied' QuartzScheduler,
passing the SchedulingContext associated with this
instance. |
void |
resumeTrigger(TriggerKey triggerKey)
Calls the equivalent method on the 'proxied' QuartzScheduler,
passing the SchedulingContext associated with this
instance. |
void |
resumeTriggers(GroupMatcher<TriggerKey> matcher)
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 |
scheduleJobs(java.util.Map<JobDetail,java.util.List<Trigger>> triggersAndJobs,
boolean replace)
Schedule all of the given jobs with the related set of triggers. |
void |
setJobFactory(JobFactory factory)
Set the JobFactory that will be responsible for producing
instances of Job classes. |
void |
setSchedulerObjectName(javax.management.ObjectName schedulerObjectName)
Set the name under which the Scheduler MBean is registered on the remote MBean server. |
void |
setSchedulerObjectName(java.lang.String schedulerObjectName)
Set the name under which the Scheduler MBean is registered on the remote MBean server. |
void |
shutdown()
Calls the equivalent method on the 'proxied' QuartzScheduler. |
void |
shutdown(boolean waitForJobsToComplete)
Calls the equivalent method on the 'proxied' QuartzScheduler. |
void |
standby()
Calls the equivalent method on the 'proxied' QuartzScheduler. |
void |
start()
Calls the equivalent method on the 'proxied' QuartzScheduler. |
void |
startDelayed(int seconds)
Calls the equivalent method on the 'proxied' QuartzScheduler. |
protected java.lang.Boolean |
toBoolean(boolean bool)
|
void |
triggerJob(JobKey jobKey)
Calls the equivalent method on the 'proxied' QuartzScheduler,
passing the SchedulingContext associated with this
instance. |
void |
triggerJob(JobKey jobKey,
JobDataMap data)
Calls the equivalent method on the 'proxied' QuartzScheduler,
passing the SchedulingContext associated with this
instance. |
boolean |
unscheduleJob(TriggerKey triggerKey)
Calls the equivalent method on the 'proxied' QuartzScheduler,
passing the SchedulingContext associated with this
instance. |
boolean |
unscheduleJobs(java.util.List<TriggerKey> triggerKeys)
Remove all of the indicated s from the scheduler. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteMBeanScheduler()
| Method Detail |
|---|
protected javax.management.ObjectName getSchedulerObjectName()
public void setSchedulerObjectName(java.lang.String schedulerObjectName)
throws SchedulerException
SchedulerException
public void setSchedulerObjectName(javax.management.ObjectName schedulerObjectName)
throws SchedulerException
SchedulerException
public abstract void initialize()
throws SchedulerException
SchedulerException
protected abstract java.lang.Object getAttribute(java.lang.String attribute)
throws SchedulerException
SchedulerException
protected abstract javax.management.AttributeList getAttributes(java.lang.String[] attributes)
throws SchedulerException
SchedulerException
protected abstract java.lang.Object invoke(java.lang.String operationName,
java.lang.Object[] params,
java.lang.String[] signature)
throws SchedulerException
SchedulerException
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
SchedulerSchedulerMetaData object describing 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 shutdown() has been called, or there is an
error within the Scheduler.Scheduler.startDelayed(int),
Scheduler.standby(),
Scheduler.shutdown()
public void startDelayed(int seconds)
throws SchedulerException
Calls the equivalent method on the 'proxied' QuartzScheduler.
startDelayed in interface SchedulerSchedulerException - if shutdown() has been called, or there is an
error within the Scheduler.Scheduler.start(),
Scheduler.standby(),
Scheduler.shutdown()
public void standby()
throws SchedulerException
Calls the equivalent method on the 'proxied' QuartzScheduler.
standby in interface SchedulerSchedulerExceptionScheduler.start(),
Scheduler.pauseAll()
public boolean isStarted()
throws SchedulerException
Note: This only reflects whether has ever
been called on this Scheduler, so it will return start()true even
if the Scheduler is currently in standby mode or has been
since shutdown.
isStarted in interface SchedulerSchedulerExceptionstart(),
isShutdown(),
isInStandbyMode()
public boolean isInStandbyMode()
throws SchedulerException
Calls the equivalent method on the 'proxied' QuartzScheduler.
isInStandbyMode in interface SchedulerSchedulerExceptionScheduler.standby(),
Scheduler.start()
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<JobExecutionContext> 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(JobKey jobKey)
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(TriggerKey triggerKey)
throws SchedulerException
Calls the equivalent method on the 'proxied' QuartzScheduler,
passing the SchedulingContext associated with this
instance.
unscheduleJob in interface SchedulerSchedulerException
public boolean deleteJobs(java.util.List<JobKey> jobKeys)
throws SchedulerException
SchedulerJobs from the Scheduler - and any
associated Triggers.
Note that while this bulk operation is likely more efficient than
invoking deleteJob(JobKey jobKey) several
times, it may have the adverse affect of holding data locks for a
single long duration of time (rather than lots of small durations
of time).
deleteJobs in interface SchedulerSchedulerException - if there is an internal Scheduler error.
public void scheduleJobs(java.util.Map<JobDetail,java.util.List<Trigger>> triggersAndJobs,
boolean replace)
throws SchedulerException
SchedulerIf any of the given jobs or triggers already exist (or more specifically, if the keys are not unique) and the replace parameter is not set to true then an exception will be thrown.
scheduleJobs in interface SchedulerObjectAlreadyExistsException - if the job/trigger keys
are not unique and the replace flag is not set to true.
SchedulerException
public boolean unscheduleJobs(java.util.List<TriggerKey> triggerKeys)
throws SchedulerException
SchedulerTriggers from the scheduler.
If the related job does not have any other triggers, and the job is not durable, then the job will also be deleted.
Note that while this bulk operation is likely more efficient than
invoking unscheduleJob(TriggerKey triggerKey) several
times, it may have the adverse affect of holding data locks for a
single long duration of time (rather than lots of small durations
of time).
unscheduleJobs in interface SchedulerSchedulerException
public java.util.Date rescheduleJob(TriggerKey triggerKey,
Trigger newTrigger)
throws SchedulerException
Calls the equivalent method on the 'proxied' QuartzScheduler,
passing the SchedulingContext associated with this
instance.
rescheduleJob in interface SchedulertriggerKey - identity of the trigger to replacenewTrigger - The new Trigger to be stored.
null if a Trigger with the given
name & group was not found and removed from the store (and the
new trigger is therefore not stored), otherwise
the first fire time of the newly scheduled trigger is returned.
SchedulerException
public void triggerJob(JobKey jobKey)
throws SchedulerException
Calls the equivalent method on the 'proxied' QuartzScheduler,
passing the SchedulingContext associated with this
instance.
triggerJob in interface SchedulerSchedulerException
public void triggerJob(JobKey jobKey,
JobDataMap data)
throws SchedulerException
Calls the equivalent method on the 'proxied' QuartzScheduler,
passing the SchedulingContext associated with this
instance.
triggerJob in interface Schedulerdata - the (possibly null) JobDataMap to be
associated with the trigger that fires the job immediately.
SchedulerException
public void pauseTrigger(TriggerKey triggerKey)
throws SchedulerException
Calls the equivalent method on the 'proxied' QuartzScheduler,
passing the SchedulingContext associated with this
instance.
pauseTrigger in interface SchedulerSchedulerExceptionScheduler.resumeTrigger(TriggerKey)
public void pauseTriggers(GroupMatcher<TriggerKey> matcher)
throws SchedulerException
Calls the equivalent method on the 'proxied' QuartzScheduler,
passing the SchedulingContext associated with this
instance.
pauseTriggers in interface Schedulermatcher - The matcher to evaluate against know groups
SchedulerExceptionScheduler.resumeTriggers(org.quartz.impl.matchers.GroupMatcher)
public void pauseJob(JobKey jobKey)
throws SchedulerException
Calls the equivalent method on the 'proxied' QuartzScheduler,
passing the SchedulingContext associated with this
instance.
pauseJob in interface SchedulerSchedulerExceptionScheduler.resumeJob(JobKey)
public void pauseJobs(GroupMatcher<JobKey> matcher)
throws SchedulerException
Calls the equivalent method on the 'proxied' QuartzScheduler,
passing the SchedulingContext associated with this
instance.
pauseJobs in interface Schedulermatcher - The matcher to evaluate against know groups
SchedulerException - On errorScheduler.resumeJobs(org.quartz.impl.matchers.GroupMatcher)
public void resumeTrigger(TriggerKey triggerKey)
throws SchedulerException
Calls the equivalent method on the 'proxied' QuartzScheduler,
passing the SchedulingContext associated with this
instance.
resumeTrigger in interface SchedulerSchedulerExceptionScheduler.pauseTrigger(TriggerKey)
public void resumeTriggers(GroupMatcher<TriggerKey> matcher)
throws SchedulerException
Calls the equivalent method on the 'proxied' QuartzScheduler,
passing the SchedulingContext associated with this
instance.
resumeTriggers in interface Schedulermatcher - The matcher to evaluate against know paused groups
SchedulerException - On errorScheduler.pauseTriggers(org.quartz.impl.matchers.GroupMatcher)
public void resumeJob(JobKey jobKey)
throws SchedulerException
Calls the equivalent method on the 'proxied' QuartzScheduler,
passing the SchedulingContext associated with this
instance.
resumeJob in interface SchedulerSchedulerExceptionScheduler.pauseJob(JobKey)
public void resumeJobs(GroupMatcher<JobKey> matcher)
throws SchedulerException
Calls the equivalent method on the 'proxied' QuartzScheduler,
passing the SchedulingContext associated with this
instance.
resumeJobs in interface Schedulermatcher - The matcher to evaluate against known paused groups
SchedulerException - On errorScheduler.pauseJobs(GroupMatcher)
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.pauseTriggers(org.quartz.impl.matchers.GroupMatcher),
Scheduler.standby()
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.util.List<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.util.Set<JobKey> getJobKeys(GroupMatcher<JobKey> matcher)
throws SchedulerException
Calls the equivalent method on the 'proxied' QuartzScheduler,
passing the SchedulingContext associated with this
instance.
getJobKeys in interface Schedulermatcher - Matcher to evaluate against known groups
SchedulerException - On error
public java.util.List<Trigger> getTriggersOfJob(JobKey jobKey)
throws SchedulerException
Calls the equivalent method on the 'proxied' QuartzScheduler,
passing the SchedulingContext associated with this
instance.
getTriggersOfJob in interface SchedulerSchedulerException
public java.util.List<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.util.Set<TriggerKey> getTriggerKeys(GroupMatcher<TriggerKey> matcher)
throws SchedulerException
Calls the equivalent method on the 'proxied' QuartzScheduler,
passing the SchedulingContext associated with this
instance.
getTriggerKeys in interface Schedulermatcher - Matcher to evaluate against known groups
SchedulerException - On error
public JobDetail getJobDetail(JobKey jobKey)
throws SchedulerException
Calls the equivalent method on the 'proxied' QuartzScheduler,
passing the SchedulingContext associated with this
instance.
getJobDetail in interface SchedulerSchedulerException
public Trigger getTrigger(TriggerKey triggerKey)
throws SchedulerException
Calls the equivalent method on the 'proxied' QuartzScheduler.
getTrigger in interface SchedulerSchedulerException
public boolean checkExists(JobKey jobKey)
throws SchedulerException
Calls the equivalent method on the 'proxied' QuartzScheduler.
checkExists in interface SchedulerjobKey - the identifier to check for
SchedulerException
public boolean checkExists(TriggerKey triggerKey)
throws SchedulerException
Calls the equivalent method on the 'proxied' QuartzScheduler.
checkExists in interface SchedulertriggerKey - the identifier to check for
SchedulerException
public void clear()
throws SchedulerException
SchedulerJobs, Triggers
Calendars.
clear in interface SchedulerSchedulerException
public Trigger.TriggerState getTriggerState(TriggerKey triggerKey)
throws SchedulerException
Calls the equivalent method on the 'proxied' QuartzScheduler,
passing the SchedulingContext associated with this
instance.
getTriggerState in interface SchedulerSchedulerExceptionTrigger.TriggerState
public void addCalendar(java.lang.String calName,
Calendar calendar,
boolean replace,
boolean updateTriggers)
throws SchedulerException
Calls the equivalent method on the 'proxied' QuartzScheduler,
passing the SchedulingContext associated with this
instance.
addCalendar in interface SchedulerupdateTriggers - whether or not to update existing triggers that
referenced the already existing calendar so that they are 'correct'
based on the new trigger.
SchedulerException - 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.util.List<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 java.util.Set<java.lang.String> getPausedTriggerGroups()
throws SchedulerException
SchedulerTrigger groups that are paused.
getPausedTriggerGroups in interface SchedulerSchedulerExceptionScheduler.getPausedTriggerGroups()
public ListenerManager getListenerManager()
throws SchedulerException
Calls the equivalent method on the 'proxied' QuartzScheduler.
getListenerManager in interface SchedulerListenerManager
SchedulerException - if the scheduler is not localListenerManager,
JobListener,
TriggerListener,
SchedulerListener
public boolean interrupt(JobKey jobKey)
throws UnableToInterruptJobException
SchedulerJob, which
must be an implementor of the InterruptableJob interface.
If more than one instance of the identified job is currently executing,
the InterruptableJob#interrupt() method will be called on
each instance. However, there is a limitation that in the case that
interrupt() on one instances throws an exception, all
remaining instances (that have not yet been interrupted) will not have
their interrupt() method called.
If you wish to interrupt a specific instance of a job (when more than
one is executing) you can do so by calling
to obtain a handle
to the job instance, and then invoke Scheduler.getCurrentlyExecutingJobs()interrupt() on it
yourself.
This method is not cluster aware. That is, it will only interrupt instances of the identified InterruptableJob currently executing in this Scheduler instance, not across the entire cluster.
interrupt in interface SchedulerUnableToInterruptJobException - if the job does not implement
InterruptableJob, or there is an exception while
interrupting the job.Scheduler.interrupt(JobKey)
public void setJobFactory(JobFactory factory)
throws SchedulerException
SchedulerJobFactory that will be responsible for producing
instances of Job classes.
JobFactories may be of use to those wishing to have their application
produce Job instances via some special mechanism, such as to
give the opportunity for dependency injection.
setJobFactory in interface SchedulerSchedulerExceptionScheduler.setJobFactory(org.quartz.spi.JobFactory)protected java.lang.Boolean toBoolean(boolean bool)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||