private boolean isStepRestart(Step step) { int count = jobRepository.getStepExecutionCount(execution.getJobInstance(), step.getName()); return count > 0; }
final ThreadPoolTaskExecutor taskExecutor = new ThreadPoolTaskExecutor(); int stepExecutionCount = jobRepository.getStepExecutionCount(stepExecution.getJobExecution().getJobInstance(), stepExecution.getStepName());
if (jobRepository.getStepExecutionCount(jobExecution.getJobInstance(), step.getName()) < step.getStartLimit()) {
if (getJobRepository().getStepExecutionCount(jobExecution.getJobInstance(), step.getName()) < step.getStartLimit()) {
@Test public void testRestart() throws Exception { JobParametersBuilder paramBuilder = new JobParametersBuilder(); paramBuilder.addDate("value", new Date()); JobExecution jobExecution = jobRepository.createJobExecution(job.getName(), paramBuilder.toJobParameters()); job.execute(jobExecution); jobExecution = jobRepository.createJobExecution(job.getName(), paramBuilder.toJobParameters()); job.execute(jobExecution); int count = jobRepository.getStepExecutionCount(jobExecution.getJobInstance(), "simpleJob.step1"); assertEquals(2, count); } }
private boolean isStepRestart(Step step) { int count = jobRepository.getStepExecutionCount(execution.getJobInstance(), step.getName()); return count > 0; }
private boolean isStepRestart(Step step) { int count = jobRepository.getStepExecutionCount(execution.getJobInstance(), step.getName()); return count > 0; }
private boolean isStepRestart(Step step) { int count = jobRepository.getStepExecutionCount(execution.getJobInstance(), step.getName()); return count > 0; }
final ThreadPoolTaskExecutor taskExecutor = new ThreadPoolTaskExecutor(); int stepExecutionCount = jobRepository.getStepExecutionCount(stepExecution.getJobExecution().getJobInstance(), stepExecution.getStepName());
final ThreadPoolTaskExecutor taskExecutor = new ThreadPoolTaskExecutor(); int stepExecutionCount = jobRepository.getStepExecutionCount(stepExecution.getJobExecution().getJobInstance(), stepExecution.getStepName());
final ThreadPoolTaskExecutor taskExecutor = new ThreadPoolTaskExecutor(); int stepExecutionCount = jobRepository.getStepExecutionCount(stepExecution.getJobExecution().getJobInstance(), stepExecution.getStepName());
if (jobRepository.getStepExecutionCount(jobInstance, step.getName()) < step.getStartLimit()) {
if (jobRepository.getStepExecutionCount(jobExecution.getJobInstance(), step.getName()) < step.getStartLimit()) {
if (jobRepository.getStepExecutionCount(jobExecution.getJobInstance(), step.getName()) < step.getStartLimit()) {
if (jobRepository.getStepExecutionCount(jobExecution.getJobInstance(), step.getName()) < step.getStartLimit()) {
if (getJobRepository().getStepExecutionCount(jobExecution.getJobInstance(), step.getName()) < step.getStartLimit()) {
if (getJobRepository().getStepExecutionCount(jobExecution.getJobInstance(), step.getName()) < step.getStartLimit()) {
if (getJobRepository().getStepExecutionCount(jobExecution.getJobInstance(), step.getName()) < step.getStartLimit()) {