Class RemoteMBeanScheduler

  • All Implemented Interfaces:
    Scheduler
    Direct Known Subclasses:
    JBoss4RMIRemoteMBeanScheduler

    public abstract class RemoteMBeanScheduler
    extends java.lang.Object
    implements Scheduler

    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.

    See Also:
    Scheduler, QuartzScheduler
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      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.
      void addJob​(JobDetail jobDetail, boolean replace, boolean storeNonDurableWhileAwaitingScheduling)
      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 th0e 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 Trigger 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​(java.lang.String fireInstanceId)
      Request the interruption, within this Scheduler instance, of the identified executing Job instance, which must be an implementor of the InterruptableJob interface.
      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 resetTriggerFromErrorState​(TriggerKey triggerKey)
      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.
      void scheduleJob​(JobDetail jobDetail, java.util.Set<? extends Trigger> triggersForJob, boolean replace)
      Schedule the given job with the related set of triggers.
      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.Set<? extends 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​(java.lang.String schedulerObjectName)
      Set the name under which the Scheduler MBean is registered on the remote MBean server.
      void setSchedulerObjectName​(javax.management.ObjectName 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.
      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 Triggers from the scheduler.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait