log.info("get schedule name set for add jsp,size:"+jobSet.size());
return "add";
}
public String add() throws Exception {
QuartzInstance instance = Tools.getQuartzInstance();
Map<String,Object> map = new HashMap<String, Object>();
map.put("name", job.getJobName());
map.put("group", job.getGroup());
map.put("description",job.getDescription());
map.put("jobClass", JobContainer.getJobById(job.getJobClass()).getJobClass());
// map.put("jobDetailClass", "org.quartz.Job");
map.put("durability", true);
map.put("jobDetailClass", "org.quartz.impl.JobDetailImpl");
instance.getJmxAdapter().addJob(instance, instance.getSchedulerByName(job.getSchedulerName()),map);
log.info("add job successfully!");
Result result = new Result();
result.setMessage("添加成功");
result.setCallbackType("");