Skip to content

Commit

Permalink
#786: Quartz plugin. Work in progress.
Browse files Browse the repository at this point in the history
  • Loading branch information
davsclaus authored and gashcrumb committed Jan 27, 2014
1 parent 9057e88 commit 7f1bb11
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions hawtio-web/src/main/java/io/hawt/jmx/QuartzFacade.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,13 @@ public void updateSimpleTrigger(String schedulerObjectName, String triggerName,
Map jobDataMap = new HashMap();
initJobParams(jobParams, jobDataMap, triggerName, groupName, data);

// also ensure the job data map is up to date with the simple trigger changes
Map triggerParams = new HashMap();
triggerParams.put("repeatCount", repeatCount);
jobDataMap.put("CamelQuartzTriggerType", "simple");
jobDataMap.put("CamelQuartzTriggerSimpleRepeatCounter", repeatCount);
triggerParams.put("repeatInterval", repeatInterval);
jobDataMap.put("CamelQuartzTriggerSimpleRepeatInterval", repeatCount);
triggerParams.put("name", triggerName);
triggerParams.put("group", groupName);
triggerParams.put("jobName", triggerName);
Expand Down Expand Up @@ -105,9 +109,13 @@ public void updateCronTrigger(String schedulerObjectName, String triggerName, St
initJobParams(jobParams, jobDataMap, triggerName, groupName, data);

Map triggerParams = new HashMap();
// also ensure the job data map is up to date with the cron trigger changes
triggerParams.put("cronExpression", cronExpression);
jobDataMap.put("CamelQuartzTriggerType", "cron");
jobDataMap.put("CamelQuartzTriggerCronExpression", cronExpression);
if (timeZone != null) {
triggerParams.put("timeZone", timeZone);
jobDataMap.put("CamelQuartzTriggerCronTimeZone", timeZone);
}
triggerParams.put("name", triggerName);
triggerParams.put("group", groupName);
Expand Down Expand Up @@ -142,4 +150,5 @@ private void initJobParams(Map jobParams, Map jobDataMap, String triggerName, St
}
jobParams.put("jobDataMap", jobDataMap);
}

}

0 comments on commit 7f1bb11

Please sign in to comment.