クラス EndState
java.lang.ObjectSE
org.springframework.batch.core.job.flow.support.state.AbstractState
org.springframework.batch.core.job.flow.support.state.EndState
- 実装されたすべてのインターフェース:
State
ジョブが進行中の場合は終了し、開始した場合は続行するための
State
実装。- 導入:
- 2.0
- 作成者:
- Dave Syer
コンストラクターのサマリー
コンストラクター説明EndState
(FlowExecutionStatus status, StringSE name) EndState
(FlowExecutionStatus status, StringSE code, StringSE name) EndState
(FlowExecutionStatus status, StringSE code, StringSE name, boolean abandon) メソッドのサマリー
修飾子と型メソッド説明protected StringSE
getCode()
protected FlowExecutionStatus
handle
(FlowExecutor executor) 保存されているFlowExecutionStatus
を返します。protected boolean
boolean
State
が終了状態かどうかを問い合わせます。protected void
setExitStatus
(FlowExecutor executor, StringSE code) ロジックを実行して、現在のフローの終了ステータスを更新します。toString()
クラス org.springframework.batch.core.job.flow.support.state.AbstractState から継承されたメソッド
getName
コンストラクターの詳細
EndState
- パラメーター:
status
- で終わるFlowExecutionStatus
name
- 状態の名前
EndState
- パラメーター:
status
- で終わるFlowExecutionStatus
name
- 状態の名前code
- 保存する終了ステータス
EndState
- パラメーター:
status
- で終わるFlowExecutionStatus
name
- 状態の名前code
- 保存する終了ステータスabandon
- 前のステップの実行を中止としてマークできることを示すフラグ (もしあれば)
メソッドの詳細
getStatus
isAbandon
protected boolean isAbandon()getCode
handle
保存されているFlowExecutionStatus
を返します。- 次で指定:
- インターフェース
State
のhandle
- 次で指定:
- クラス
AbstractState
のhandle
- パラメーター:
executor
- 呼び出し元から渡されたコンテキスト- 戻り値:
- 実行のステータス
- 例外:
ExceptionSE
- 何かがうまくいかない場合- 関連事項:
setExitStatus
ロジックを実行して、現在のフローの終了ステータスを更新します。- パラメーター:
executor
- 現在のフローのFlowExecutor
code
- 保存する終了ステータス
isEndState
public boolean isEndState()インターフェースからコピーされた説明:State
State
が終了状態かどうかを問い合わせます。処理を続行できる場合、再起動が必要になる場合でも、実装は false を返す必要があります。- 戻り値:
- この
State
が処理の終わりである場合は true
toString
- オーバーライド:
- クラス
AbstractState
のtoString