Beispiel #1
0
  /**
   * Removes the job from the schedule if it exists.
   *
   * @param id
   */
  public synchronized void removeScheduledJob(String id) {
    ScheduledJob job = scheduleIDMap.get(id);
    scheduleIDMap.remove(id);
    runner.removeScheduledJob(job);

    loader.saveSchedule(getSchedule());
  }
Beispiel #2
0
 /**
  * Retrieves a copy of the list of schedules.
  *
  * @return
  */
 public synchronized List<ScheduledJob> getSchedule() {
   return runner.getSchedule();
 }