类 StepState
- java.lang.Object
- org.springframework.batch.core.job.flow.support.state.AbstractState
- org.springframework.batch.core.job.flow.support.state.StepState
- 所有已实现的接口:
State
,StepHolder
,StepLocator
- 直接已知子类:
JsrStepState
public class StepState extends AbstractState implements StepLocator, StepHolder
- 从以下版本开始:
- 2.0
- 作者:
- Dave Syer, Michael Minella
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Step
getStep()
Step
getStep(java.lang.String stepName)
java.util.Collection<java.lang.String>
getStepNames()
FlowExecutionStatus
handle(FlowExecutor executor)
Handle some business or processing logic and return a status that can be used to drive a flow to the nextState
.boolean
isEndState()
Inquire as to whether aState
is an end state.从类继承的方法 org.springframework.batch.core.job.flow.support.state.AbstractState
getName, toString
方法详细资料
handle
public FlowExecutionStatus handle(FlowExecutor executor) throws java.lang.Exception
从接口复制的说明:State
Handle some business or processing logic and return a status that can be used to drive a flow to the nextState
. The status can be any string, but special meaning is assigned to the static constants inFlowExecution
. The context can be used by implementations to do whatever they need to do. The same context will be passed to allState
instances, so implementations should be careful that the context is thread-safe, or used in a thread-safe manner.- 指定者:
handle
在接口中State
- 指定者:
handle
在类中AbstractState
- 参数:
executor
- the context passed in by the caller- 返回:
- a status for the execution
- 抛出:
java.lang.Exception
- if anything goes wrong
getStep
public Step getStep()
- 指定者:
getStep
在接口中StepHolder
isEndState
public boolean isEndState()
从接口复制的说明:State
Inquire as to whether aState
is an end state. Implementations should return false if processing can continue, even if that would require a restart.- 指定者:
isEndState
在接口中State
- 返回:
- true if this
State
is the end of processing
getStepNames
public java.util.Collection<java.lang.String> getStepNames()
- 指定者:
getStepNames
在接口中StepLocator
getStep
public Step getStep(java.lang.String stepName) throws NoSuchStepException
- 指定者:
getStep
在接口中StepLocator
- 抛出:
NoSuchStepException