BATCH-402: Removed startLimit from Job. Also removed executionCount from JobExecution.
This commit is contained in:
@@ -34,8 +34,6 @@ public interface Job {
|
||||
|
||||
List getSteps();
|
||||
|
||||
int getStartLimit();
|
||||
|
||||
boolean isRestartable();
|
||||
|
||||
/**
|
||||
|
||||
@@ -44,8 +44,6 @@ public class JobInstance extends Entity {
|
||||
|
||||
private Job job;
|
||||
|
||||
private int jobExecutionCount;
|
||||
|
||||
private JobExecution lastExecution;
|
||||
|
||||
public JobInstance(Long id, JobParameters jobParameters, Job job) {
|
||||
@@ -64,14 +62,6 @@ public class JobInstance extends Entity {
|
||||
return lastExecution;
|
||||
}
|
||||
|
||||
public int getJobExecutionCount() {
|
||||
return jobExecutionCount;
|
||||
}
|
||||
|
||||
public void setJobExecutionCount(int jobExecutionCount) {
|
||||
this.jobExecutionCount = jobExecutionCount;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link JobParameters}
|
||||
*/
|
||||
|
||||
@@ -32,15 +32,6 @@ public class JobInstanceTests extends TestCase {
|
||||
assertEquals(lastExecution, instance.getLastExecution());
|
||||
}
|
||||
|
||||
/**
|
||||
* Test method for {@link org.springframework.batch.core.domain.JobInstance#getJobExecutionCount()}.
|
||||
*/
|
||||
public void testGetJobExecutionCount() {
|
||||
assertEquals(0, instance.getJobExecutionCount());
|
||||
instance.setJobExecutionCount(22);
|
||||
assertEquals(22, instance.getJobExecutionCount());
|
||||
}
|
||||
|
||||
/**
|
||||
* Test method for {@link org.springframework.batch.core.domain.JobInstance#getIdentifier()}.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user