// name and group are the primary key of the job detail final JobDetail jobDetail = new JobDetail(name, group, ExtendedReportJob.class); // reportSchedule is the object I've previously modified jobDetail.getJobDataMap().put(ORStatics.REPORT_SCHEDULE, reportSchedule); jobDetail.setDescription(reportSchedule.getScheduleDescription()); // overwrite the previous job, however retaining the triggers scheduler.addJob(jobDetail, true);
Class<?> jobClass = Class.forName(t_job.getClassName()); if (Job.class.isAssignableFrom(jobClass)) { // create a job detail that is not volatile and is durable (is persistent and exists without trigger) JobDetail job = new JobDetail(t_job.getName(), t_job.getGroupName(), jobClass, false, true, true); job.setDescription(t_job.getDescription()); }
public void setDescription(String s) { detail.setDescription(s); trigger.setDescription(s); }
@Override public JobDetail createJob(String name, String group ,String description, Class<?> clazz) { Assert.notNull(name, "'name' must not be null"); Assert.notNull(group, "'group' must not be null"); Assert.notNull(clazz, "'clazz' must not be null"); try { JobDetail job = new JobDetail(name, group, clazz); job.setDescription(description); job.setDurability(true); return job; } catch (Exception e) { throw new JobException(e); } }
@Override public JobDetail createJob(String name, String group ,String description, Class<?> clazz) { Assert.notNull(name, "'name' must not be null"); Assert.notNull(group, "'group' must not be null"); Assert.notNull(clazz, "'clazz' must not be null"); try { JobDetail job = new JobDetail(name, group, clazz); job.setDescription(description); job.setDurability(true); return job; } catch (Exception e) { throw new JobException(e); } }
jobDetail.setDescription( schedule.getDescription() );
job.setDescription(rs.getString(COL_DESCRIPTION)); job.setJobClass(loadHelper.loadClass(rs .getString(COL_JOB_CLASS)));
job.setDescription(rs.getString(COL_DESCRIPTION)); job.setJobClass(loadHelper.loadClass(rs .getString(COL_JOB_CLASS)));
jobDetail.setName(createUniqueJobName(group, operationName)); jobDetail.setGroup(createJobGroupName(group)); jobDetail.setDescription(notes); jobDetail.setVolatility(false); // we want it persisted jobDetail.setDurability(false);
jobDetail.setDescription( schedule.getDescription() );
String jobGroupName = createJobGroupName(resource); jobDetail.setGroup(jobGroupName); jobDetail.setDescription(notes); jobDetail.setVolatility(false); // we want it persisted jobDetail.setDurability(false);