@Test public void assertBuildJobDetail() { assertThat(taskResultStatisticJob.buildJobDetail().getKey().getName(), is(TaskResultStatisticJob.class.getSimpleName() + "_" + statisticInterval)); }
@Override public JobDetail buildJobDetail() { JobDetail result = JobBuilder.newJob(this.getClass()).withIdentity(getJobName() + "_" + statisticInterval).build(); result.getJobDataMap().put("statisticUnit", statisticInterval); return result; }
TaskResultStatisticJob extends AbstractStatisticJob { @Override public JobDetail buildJobDetail() { JobDetail result = JobBuilder.newJob(this.getClass()).withIdentity(getJobName() + "_" + statisticInterval).build(); result.getJobDataMap().put("statisticUnit", statisticInterval); return result; } }
TaskResultStatisticJob extends AbstractStatisticJob { @Override public JobDetail buildJobDetail() { JobDetail result = JobBuilder.newJob(this.getClass()).withIdentity(getJobName() + "_" + statisticInterval).build(); result.getJobDataMap().put("statisticUnit", statisticInterval); return result; }  }
TaskResultStatisticJob extends AbstractStatisticJob { @Override public JobDetail buildJobDetail() { JobDetail result = JobBuilder.newJob(this.getClass()).withIdentity(getJobName() + "_" + statisticInterval).build(); result.getJobDataMap().put("statisticUnit", statisticInterval); return result; }  @Override JobDetail buildJobDetail(); @Override Trigger buildTrigger(); @Override Map<String, Object> getDataMap(); @Override void execute(final JobExecutionContext context); }
TaskResultStatisticJob extends AbstractStatisticJob { @Override public JobDetail buildJobDetail() { JobDetail result = JobBuilder.newJob(this.getClass()).withIdentity(getJobName() + "_" + statisticInterval).build(); result.getJobDataMap().put("statisticUnit", statisticInterval); return result; }  @Override JobDetail buildJobDetail(); @Override Trigger buildTrigger(); @Override Map<String, Object> getDataMap(); @Override void execute(final JobExecutionContext context);  }