@Test public void launchJob() { JobExecution jobExecution = jobExecutionService.launch(JobConfig.builder().name("j1").build()); assertThat(jobExecution.getJobName()).matches("j1"); assertThat(jobExecution.getStatus()).isEqualTo(BatchStatus.STARTED); }
public JobExecution launch(JobConfig jobConfig) { return JobExecution.fromSpring(adHocStarter.start(jobConfig)); }
JobExecutionService { public JobExecution launch(JobConfig jobConfig) { return JobExecution.fromSpring(adHocStarter.start(jobConfig)); } }
JobExecutionService { public JobExecution launch(JobConfig jobConfig) { return JobExecution.fromSpring(adHocStarter.start(jobConfig)); } @Autowired  JobExecutionService(JobExplorer jobExplorer, CachedJobExecutionProvider jobExecutionProvider, AdHocStarter adHocStarter); }
JobExecutionService { public JobExecution launch(JobConfig jobConfig) { return JobExecution.fromSpring(adHocStarter.start(jobConfig)); } @Autowired  JobExecutionService(JobExplorer jobExplorer, CachedJobExecutionProvider jobExecutionProvider, AdHocStarter adHocStarter); JobExecution jobExecution(long executionId); Collection<JobExecution> jobExecutions(Optional<String> jobNameRegexp,
                                                  Optional<String> exitCode,
                                                  int maxNumberOfExecutionsPerJobName); JobExecution launch(JobConfig jobConfig); Job job(String jobName); }
JobExecutionService { public JobExecution launch(JobConfig jobConfig) { return JobExecution.fromSpring(adHocStarter.start(jobConfig)); } @Autowired  JobExecutionService(JobExplorer jobExplorer, CachedJobExecutionProvider jobExecutionProvider, AdHocStarter adHocStarter); JobExecution jobExecution(long executionId); Collection<JobExecution> jobExecutions(Optional<String> jobNameRegexp,
                                                  Optional<String> exitCode,
                                                  int maxNumberOfExecutionsPerJobName); JobExecution launch(JobConfig jobConfig); Job job(String jobName);  }