接口 Step
- 所有已知实现类:
AbstractStep
,BatchletStep
,DecisionStep
,DelegateStep
,FlowStep
,JobStep
,PartitionStep
,PartitionStep
,TaskletStep
public interface Step
Batch domain interface representing the configuration of a step. As with theJob
, aStep
is meant to explicitly represent the configuration of a step by a developer, but also the ability to execute the step.- 作者:
- Dave Syer
字段概要
字段 修饰符和类型 字段 说明 static java.lang.String
STEP_TYPE_KEY
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 void
execute(StepExecution stepExecution)
Process the step and assign progress and status meta information to theStepExecution
provided.java.lang.String
getName()
int
getStartLimit()
boolean
isAllowStartIfComplete()
字段详细资料
STEP_TYPE_KEY
static final java.lang.String STEP_TYPE_KEY
- 另请参阅:
- 常量字段值
方法详细资料
getName
java.lang.String getName()
- 返回:
- the name of this step.
isAllowStartIfComplete
boolean isAllowStartIfComplete()
- 返回:
- true if a step that is already marked as complete can be started again.
getStartLimit
int getStartLimit()
- 返回:
- the number of times a job can be started with the same identifier.
execute
void execute(StepExecution stepExecution) throws JobInterruptedException
Process the step and assign progress and status meta information to theStepExecution
provided. TheStep
is responsible for setting the meta information and also saving it if required by the implementation.
It is not safe to re-use an instance ofStep
to process multiple concurrent executions.- 参数:
stepExecution
- an entity representing the step to be executed- 抛出:
JobInterruptedException
- if the step is interrupted externally