@Test public void assertGetDataMap() { assertThat(jobRunningStatisticJob.getDataMap().get("runningService"), is(runningService)); assertThat(jobRunningStatisticJob.getDataMap().get("repository"), is(repository)); }
@Override public Map<String, Object> getDataMap() { Map<String, Object> result = new HashMap<>(2); result.put("runningService", runningService); result.put("repository", repository); return result; }
JobRunningStatisticJob extends AbstractStatisticJob { @Override public Map<String, Object> getDataMap() { Map<String, Object> result = new HashMap<>(2); result.put("runningService", runningService); result.put("repository", repository); return result; } }
JobRunningStatisticJob extends AbstractStatisticJob { @Override public Map<String, Object> getDataMap() { Map<String, Object> result = new HashMap<>(2); result.put("runningService", runningService); result.put("repository", repository); return result; } JobRunningStatisticJob(final CoordinatorRegistryCenter registryCenter, final StatisticRdbRepository rdbRepository); }
JobRunningStatisticJob extends AbstractStatisticJob { @Override public Map<String, Object> getDataMap() { Map<String, Object> result = new HashMap<>(2); result.put("runningService", runningService); result.put("repository", repository); return result; } JobRunningStatisticJob(final CoordinatorRegistryCenter registryCenter, final StatisticRdbRepository rdbRepository); @Override JobDetail buildJobDetail(); @Override Trigger buildTrigger(); @Override Map<String, Object> getDataMap(); @Override void execute(final JobExecutionContext context); }
JobRunningStatisticJob extends AbstractStatisticJob { @Override public Map<String, Object> getDataMap() { Map<String, Object> result = new HashMap<>(2); result.put("runningService", runningService); result.put("repository", repository); return result; } JobRunningStatisticJob(final CoordinatorRegistryCenter registryCenter, final StatisticRdbRepository rdbRepository); @Override JobDetail buildJobDetail(); @Override Trigger buildTrigger(); @Override Map<String, Object> getDataMap(); @Override void execute(final JobExecutionContext context);  }