/** * 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()); }
/** * Retrieves a copy of the list of schedules. * * @return */ public synchronized List<ScheduledJob> getSchedule() { return runner.getSchedule(); }