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:
dsyer
2008-01-30 17:56:56 +00:00
parent 02f1ae5c0c
commit a2117e4f22
50 changed files with 398 additions and 403 deletions

View File

@@ -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();

View File

@@ -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() {