public Set<String> getPausedTriggerGroups() throws Exception { try { return scheduler.getPausedTriggerGroups(); } catch (Exception e) { throw newPlainException(e); } }
public void start() throws Exception { try { scheduler.start(); } catch (Exception e) { throw newPlainException(e); } }
public void pauseJobs(GroupMatcher<JobKey> matcher) throws Exception { try { scheduler.pauseJobs(matcher); } catch (Exception e) { throw newPlainException(e); } }
private void pauseTriggers(GroupMatcher<TriggerKey> matcher) throws Exception { try { scheduler.pauseTriggers(matcher); } catch (Exception e) { throw newPlainException(e); } }
private void resumeTriggers(GroupMatcher<TriggerKey> matcher) throws Exception { try { scheduler.resumeTriggers(matcher); } catch (Exception e) { throw newPlainException(e); } }
public List<String> getJobGroupNames() throws Exception { try { return scheduler.getJobGroupNames(); } catch (Exception e) { throw newPlainException(e); } }
public void jobToBeExecuted(JobExecutionContext context) { try { sendNotification(JOB_TO_BE_EXECUTED, JobExecutionContextSupport .toCompositeData(context)); } catch (Exception e) { throw new RuntimeException(newPlainException(e)); } }
public void jobWasExecuted(JobExecutionContext context, JobExecutionException jobException) { try { sendNotification(JOB_WAS_EXECUTED, JobExecutionContextSupport .toCompositeData(context)); } catch (Exception e) { throw new RuntimeException(newPlainException(e)); } }
public void resumeJob(String jobName, String jobGroup) throws Exception { try { scheduler.resumeJob(jobKey(jobName, jobGroup)); } catch (Exception e) { throw newPlainException(e); } }
public TabularData getCurrentlyExecutingJobs() throws Exception { try { List<JobExecutionContext> currentlyExecutingJobs = scheduler.getCurrentlyExecutingJobs(); return JobExecutionContextSupport.toTabularData(currentlyExecutingJobs); } catch (Exception e) { throw newPlainException(e); } }
public List<String> getTriggerNames(String groupName) throws Exception { try { List<String> triggerNames = new ArrayList<String>(); for(TriggerKey key: scheduler.getTriggerKeys(GroupMatcher.triggerGroupEquals(groupName))) { triggerNames.add(key.getName()); } return triggerNames; } catch (Exception e) { throw newPlainException(e); } }
public boolean interruptJob(String jobName, String jobGroupName) throws Exception { try { return scheduler.interrupt(jobKey(jobName, jobGroupName)); } catch (Exception e) { throw newPlainException(e); } }
public void triggerJob(CompositeData trigger) throws Exception { try { scheduler.triggerJob(TriggerSupport.newTrigger(trigger)); } catch (Exception e) { throw newPlainException(e); } }
public void addJob(CompositeData jobDetail, boolean replace) throws Exception { try { scheduler.addJob(JobDetailSupport.newJobDetail(jobDetail), replace); } catch (Exception e) { throw newPlainException(e); } }
public boolean deleteJob(String jobName, String jobGroupName) throws Exception { try { return scheduler.deleteJob(jobKey(jobName, jobGroupName)); } catch (Exception e) { throw newPlainException(e); } }
public boolean unscheduleJob(String triggerName, String triggerGroup) throws Exception { try { return scheduler.unscheduleJob(triggerKey(triggerName, triggerGroup)); } catch (Exception e) { throw newPlainException(e); } }
public void pauseJob(String jobName, String jobGroup) throws Exception { try { scheduler.pauseJob(jobKey(jobName, jobGroup)); } catch (Exception e) { throw newPlainException(e); } }
public void resumeTrigger(String triggerName, String triggerGroup) throws Exception { try { scheduler.resumeTrigger(triggerKey(triggerName, triggerGroup)); } catch (Exception e) { throw newPlainException(e); } }
public CompositeData getJobDetail(String jobName, String jobGroupName) throws Exception { try { JobDetail jobDetail = scheduler.getJobDetail(jobKey(jobName, jobGroupName)); return JobDetailSupport.toCompositeData(jobDetail); } catch (Exception e) { throw newPlainException(e); } }
public String getTriggerState(String triggerName, String triggerGroupName) throws Exception { try { TriggerKey triggerKey = triggerKey(triggerName, triggerGroupName); TriggerState ts = scheduler.getTriggerState(triggerKey); return ts.name(); } catch (Exception e) { throw newPlainException(e); } }