BATCH-7: Remove transaction synchronization and state management from input/output sources (formerly buffering)
http://jira.springframework.org/browse/BATCH-7 Rename Restartable to ItemStream
This commit is contained in:
@@ -19,10 +19,9 @@ import org.springframework.batch.io.exception.BatchCriticalException;
|
||||
|
||||
/**
|
||||
* Batch domain interface representing the configuration of a step. As with the
|
||||
* (@link Job), step configuration is meant to explicitly represent a the
|
||||
* configuration of a step by a developer. This allows for the separation of
|
||||
* what a developer configures from the myriad of concerns required for
|
||||
* executing a job.
|
||||
* (@link Job), a {@link Step} is meant to explicitly represent a the
|
||||
* configuration of a step by a developer, but also the ability to execute the
|
||||
* step.
|
||||
*
|
||||
* @author Dave Syer
|
||||
*
|
||||
@@ -30,7 +29,7 @@ import org.springframework.batch.io.exception.BatchCriticalException;
|
||||
public interface Step {
|
||||
|
||||
/**
|
||||
* @return the name of this step configuration.
|
||||
* @return the name of this step.
|
||||
*/
|
||||
String getName();
|
||||
|
||||
|
||||
@@ -18,8 +18,8 @@ package org.springframework.batch.core.domain;
|
||||
|
||||
import java.util.Properties;
|
||||
|
||||
import org.springframework.batch.restart.GenericRestartData;
|
||||
import org.springframework.batch.restart.RestartData;
|
||||
import org.springframework.batch.stream.GenericStreamContext;
|
||||
import org.springframework.batch.stream.StreamContext;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
@@ -52,7 +52,7 @@ public class StepInstance extends Entity {
|
||||
|
||||
private BatchStatus status;
|
||||
|
||||
private RestartData restartData = new GenericRestartData(new Properties());
|
||||
private StreamContext streamContext = new GenericStreamContext(new Properties());
|
||||
|
||||
private int stepExecutionCount = 0;
|
||||
|
||||
@@ -87,12 +87,12 @@ public class StepInstance extends Entity {
|
||||
this.stepExecutionCount = stepExecutionCount;
|
||||
}
|
||||
|
||||
public RestartData getRestartData() {
|
||||
return restartData;
|
||||
public StreamContext getRestartData() {
|
||||
return streamContext;
|
||||
}
|
||||
|
||||
public void setRestartData(RestartData restartData) {
|
||||
this.restartData = restartData;
|
||||
public void setRestartData(StreamContext streamContext) {
|
||||
this.streamContext = streamContext;
|
||||
}
|
||||
|
||||
public BatchStatus getStatus() {
|
||||
|
||||
Reference in New Issue
Block a user