@Test public void pauseJob() { schedulerService.pauseJob("定时任务测试", Scheduler.DEFAULT_GROUP); }
public void pauseJob(String jobName, String jobGroup) { TriggerKey triggerKey = TriggerKey.triggerKey(jobName, jobGroup); try { if (checkExists(jobName, jobGroup)) { scheduler.pauseTrigger(triggerKey); } } catch (SchedulerException e) { throw new OpenAlertException(e.getMessage()); } }
SchedulerService { public void pauseJob(String jobName, String jobGroup) { TriggerKey triggerKey = TriggerKey.triggerKey(jobName, jobGroup); try { if (checkExists(jobName, jobGroup)) { scheduler.pauseTrigger(triggerKey); } } catch (SchedulerException e) { throw new OpenAlertException(e.getMessage()); } } }
SchedulerService { public void pauseJob(String jobName, String jobGroup) { TriggerKey triggerKey = TriggerKey.triggerKey(jobName, jobGroup); try { if (checkExists(jobName, jobGroup)) { scheduler.pauseTrigger(triggerKey); } } catch (SchedulerException e) { throw new OpenAlertException(e.getMessage()); } }  }
SchedulerService { public void pauseJob(String jobName, String jobGroup) { TriggerKey triggerKey = TriggerKey.triggerKey(jobName, jobGroup); try { if (checkExists(jobName, jobGroup)) { scheduler.pauseTrigger(triggerKey); } } catch (SchedulerException e) { throw new OpenAlertException(e.getMessage()); } }  List<String> getJobGroupNames(); List<TaskInfo> getJobList(); void addSimpleJob(TaskInfo info); void addCronJob(TaskInfo info); void editSimpleJob(TaskInfo info); void editCronJob(TaskInfo info); void deleteJob(String jobName, String jobGroup); void pauseJob(String jobName, String jobGroup); void resumeJob(String jobName, String jobGroup); }
SchedulerService { public void pauseJob(String jobName, String jobGroup) { TriggerKey triggerKey = TriggerKey.triggerKey(jobName, jobGroup); try { if (checkExists(jobName, jobGroup)) { scheduler.pauseTrigger(triggerKey); } } catch (SchedulerException e) { throw new OpenAlertException(e.getMessage()); } }  List<String> getJobGroupNames(); List<TaskInfo> getJobList(); void addSimpleJob(TaskInfo info); void addCronJob(TaskInfo info); void editSimpleJob(TaskInfo info); void editCronJob(TaskInfo info); void deleteJob(String jobName, String jobGroup); void pauseJob(String jobName, String jobGroup); void resumeJob(String jobName, String jobGroup);  }