/** * sendNotification * * @param eventType * @param data */ public void sendNotification(String eventType, Object data) { sendNotification(eventType, data, null); }
/** * sendNotification * * @param eventType */ public void sendNotification(String eventType) { sendNotification(eventType, null, null); }
public void jobsPaused(String jobGroup) { Map<String, String> map = new HashMap<String, String>(); map.put("jobName", null); map.put("jobGroup", jobGroup); sendNotification(JOBS_PAUSED, map); }
public void jobsResumed(String jobGroup) { Map<String, String> map = new HashMap<String, String>(); map.put("jobName", null); map.put("jobGroup", jobGroup); sendNotification(JOBS_RESUMED, map); }
public void triggersResumed(String triggerGroup) { Map<String, String> map = new HashMap<String, String>(); map.put("triggerName", null); map.put("triggerGroup", triggerGroup); sendNotification(TRIGGERS_RESUMED, map); }
public void triggersPaused(String triggerGroup) { Map<String, String> map = new HashMap<String, String>(); map.put("triggerName", null); map.put("triggerGroup", triggerGroup); sendNotification(TRIGGERS_PAUSED, map); }
public void jobAdded(JobDetail jobDetail) { sendNotification(JOB_ADDED, JobDetailSupport.toCompositeData(jobDetail)); }
public void schedulerError(String msg, SchedulerException cause) { sendNotification(SCHEDULER_ERROR, cause.getMessage()); }
public void jobDeleted(JobKey jobKey) { Map<String, String> map = new HashMap<String, String>(); map.put("jobName", jobKey.getName()); map.put("jobGroup", jobKey.getGroup()); sendNotification(JOB_DELETED, map); }
public void jobPaused(JobKey jobKey) { Map<String, String> map = new HashMap<String, String>(); map.put("jobName", jobKey.getName()); map.put("jobGroup", jobKey.getGroup()); sendNotification(JOBS_PAUSED, map); }
public void jobResumed(JobKey jobKey) { Map<String, String> map = new HashMap<String, String>(); map.put("jobName", jobKey.getName()); map.put("jobGroup", jobKey.getGroup()); sendNotification(JOBS_RESUMED, map); }
public void jobUnscheduled(TriggerKey triggerKey) { Map<String, String> map = new HashMap<String, String>(); map.put("triggerName", triggerKey.getName()); map.put("triggerGroup", triggerKey.getGroup()); sendNotification(JOB_UNSCHEDULED, map); }
public void triggerResumed(TriggerKey triggerKey) { Map<String, String> map = new HashMap<String, String>(); if(triggerKey != null) { map.put("triggerName", triggerKey.getName()); map.put("triggerGroup", triggerKey.getGroup()); } sendNotification(TRIGGERS_RESUMED, map); }
public void triggerPaused(TriggerKey triggerKey) { Map<String, String> map = new HashMap<String, String>(); if(triggerKey != null) { map.put("triggerName", triggerKey.getName()); map.put("triggerGroup", triggerKey.getGroup()); } sendNotification(TRIGGERS_PAUSED, map); }
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 jobExecutionVetoed(JobExecutionContext context) { try { sendNotification(JOB_EXECUTION_VETOED, JobExecutionContextSupport .toCompositeData(context)); } catch (Exception e) { throw new RuntimeException(newPlainException(e)); } }
public void setSampledStatisticsEnabled(boolean enabled) { if (enabled != this.sampledStatisticsEnabled) { this.sampledStatisticsEnabled = enabled; if(enabled) { this.sampledStatistics = new SampledStatisticsImpl(scheduler); } else { this.sampledStatistics.shutdown(); this.sampledStatistics = NULL_SAMPLED_STATISTICS; } sendNotification(SAMPLED_STATISTICS_ENABLED, Boolean.valueOf(enabled)); } }
public void triggerFinalized(Trigger trigger) { Map<String, String> map = new HashMap<String, String>(); map.put("triggerName", trigger.getKey().getName()); map.put("triggerGroup", trigger.getKey().getGroup()); sendNotification(TRIGGER_FINALIZED, map); }
public void schedulerShutdown() { scheduler.removeInternalSchedulerListener(this); scheduler.removeInternalJobListener(getName()); sendNotification(SCHEDULER_SHUTDOWN); }