Quartz Scheduler (Historical - Do Not File New Issues Here - See GitHub)
  1. Quartz Scheduler (Historical - Do Not File New Issues Here - See GitHub)
  2. QTZ-267

Add new Scheduler method: scheduleJob(JobDetail job, Set<Trigger> trigger) to schedule multiple triggers for a job all at once.

    Details

    • Type: Task Task
    • Status: Closed
    • Priority: 2 Major 2 Major
    • Resolution: Fixed
    • Affects Version/s: 2.2
    • Fix Version/s: 2.2
    • Component/s: Core
    • Labels:
      None
    • Terracotta Target:
      Gladstone
    • LOE:
      .5
    • Fixed In Revision:
      2019
    • Documentation Required:
      Yes

      Activity

      Hide
      Anthony Dahanne Dahanne added a comment -

      there is already, in the scheduler interface, a method with the following signature :

      void scheduleJobs(Map<JobDetail, List<Trigger>> triggersAndJobs, boolean replace) throws SchedulerException; 
      

      adding this new signature to the Scheduler interface:

      void scheduleJob(JobDetail jobDetail, Set<Trigger> triggersForJob) throws SchedulerException;
      

      with the following implementation in QuartzScheduler :

      public void scheduleJobs(JobDetail job, Set<Trigger> triggers, boolean replace)  throws SchedulerException  {
             Map<JobDetail, List<Trigger>>  triggersAndJobs = new HashMap<JobDetail, List<Trigger>>();
             triggersAndJobs.put(job, triggers);
             scheduleJobs(triggersAndJobs, replace);
      }
      

      this issue depends on QTZ-292

      Show
      Anthony Dahanne Dahanne added a comment - there is already, in the scheduler interface, a method with the following signature : void scheduleJobs(Map<JobDetail, List<Trigger>> triggersAndJobs, boolean replace) throws SchedulerException; adding this new signature to the Scheduler interface: void scheduleJob(JobDetail jobDetail, Set<Trigger> triggersForJob) throws SchedulerException; with the following implementation in QuartzScheduler : public void scheduleJobs(JobDetail job, Set<Trigger> triggers, boolean replace) throws SchedulerException { Map<JobDetail, List<Trigger>> triggersAndJobs = new HashMap<JobDetail, List<Trigger>>(); triggersAndJobs.put(job, triggers); scheduleJobs(triggersAndJobs, replace); } this issue depends on QTZ-292
      Hide
      Anthony Dahanne Dahanne added a comment -

      added the new method, implementing it in QuartzScheduler

      Show
      Anthony Dahanne Dahanne added a comment - added the new method, implementing it in QuartzScheduler

        People

        • Assignee:
          Anthony Dahanne Dahanne
          Reporter:
          James House
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: