예제 #1
0
 public void removeAllJobs() throws SchedulerException {
   for (String groupName : quartzScheduler.getJobGroupNames()) {
     for (JobKey jobKey : quartzScheduler.getJobKeys(GroupMatcher.jobGroupEquals(groupName))) {
       quartzScheduler.deleteJob(jobKey);
     }
   }
 }
예제 #2
0
 public void removeJob(JobKey jobKey) throws SchedulerException {
   quartzScheduler.deleteJob(jobKey);
 }