类 JsrEndState
- java.lang.Object
- org.springframework.batch.core.job.flow.support.state.AbstractState
- org.springframework.batch.core.job.flow.support.state.EndState
- org.springframework.batch.core.jsr.job.flow.support.state.JsrEndState
- 所有已实现的接口:
State
public class JsrEndState extends EndState
State
implementation for ending a job per JSR-352 rules if it is in progress and continuing if just starting.- 从以下版本开始:
- 3.0
- 作者:
- Michael Minella
构造器概要
构造器 构造器 说明 JsrEndState(FlowExecutionStatus status, java.lang.String name)
JsrEndState(FlowExecutionStatus status, java.lang.String code, java.lang.String name)
JsrEndState(FlowExecutionStatus status, java.lang.String code, java.lang.String name, boolean abandon)
JsrEndState(FlowExecutionStatus status, java.lang.String code, java.lang.String name, java.lang.String restart, boolean abandon, JobRepository jobRepository)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 FlowExecutionStatus
handle(FlowExecutor executor)
Return theFlowExecutionStatus
stored.protected void
setExitStatus(FlowExecutor executor, java.lang.String code)
Performs any logic to update the exit status for the current flow.从类继承的方法 org.springframework.batch.core.job.flow.support.state.EndState
getCode, getStatus, isAbandon, isEndState, toString
从类继承的方法 org.springframework.batch.core.job.flow.support.state.AbstractState
getName
构造器详细资料
JsrEndState
public JsrEndState(FlowExecutionStatus status, java.lang.String name)
- 参数:
status
- TheFlowExecutionStatus
to end withname
- The name of the state
JsrEndState
public JsrEndState(FlowExecutionStatus status, java.lang.String code, java.lang.String name)
- 参数:
status
- TheFlowExecutionStatus
to end withname
- The name of the statecode
- the exit status.
JsrEndState
public JsrEndState(FlowExecutionStatus status, java.lang.String code, java.lang.String name, boolean abandon)
- 参数:
status
- TheFlowExecutionStatus
to end withname
- The name of the stateabandon
- flag to indicate that previous step execution can be marked as abandoned (if there is one)code
- the exit status.
JsrEndState
public JsrEndState(FlowExecutionStatus status, java.lang.String code, java.lang.String name, java.lang.String restart, boolean abandon, JobRepository jobRepository)
方法详细资料
handle
public FlowExecutionStatus handle(FlowExecutor executor) throws java.lang.Exception
从类复制的说明:EndState
Return theFlowExecutionStatus
stored.- 指定者:
handle
在接口中State
- 覆盖:
handle
在类中EndState
- 参数:
executor
- the context passed in by the caller- 返回:
- a status for the execution
- 抛出:
java.lang.Exception
- if anything goes wrong- 另请参阅:
State.handle(FlowExecutor)
setExitStatus
protected void setExitStatus(FlowExecutor executor, java.lang.String code)
从类复制的说明:EndState
Performs any logic to update the exit status for the current flow.- 覆盖:
setExitStatus
在类中EndState
- 参数:
executor
-FlowExecutor
for the current flowcode
- The exit status to save