クラス FlowJob
java.lang.ObjectSE
org.springframework.batch.core.job.AbstractJob
org.springframework.batch.core.job.flow.FlowJob
- 実装されたすべてのインターフェース:
Job
、StepLocator
、org.springframework.beans.factory.Aware
、org.springframework.beans.factory.BeanNameAware
、org.springframework.beans.factory.InitializingBean
逐次実行を必要とせずに、ステップの複雑なフローを可能にする
Job
インターフェースの実装。一般に、このジョブ実装はパーサーの背後で使用するように設計されており、名前空間が詳細を抽象化できるようにします。- 導入:
- 2.0
- 作成者:
- Dave Syer, Mahmoud Ben Hassine, Taeik Lim
フィールドサマリー
フィールドクラス org.springframework.batch.core.job.AbstractJob から継承されたフィールド
logger
コンストラクターのサマリー
コンストラクター方法の概要
修飾子と型メソッド説明protected void
doExecute
(JobExecution execution) サブクラスが処理ロジックに集中し、リスナーとリポジトリ呼び出しを無視できるようにする拡張ポイント。指定された名前のステップを取得します。ステップ名を取得します。void
フローのパブリック setter。クラス org.springframework.batch.core.job.AbstractJob から継承されたメソッド
afterPropertiesSet, execute, getDefaultExitStatusForFailure, getJobParametersIncrementer, getJobParametersValidator, getJobRepository, getName, handleStep, isRestartable, registerJobExecutionListener, setBeanName, setJobExecutionListeners, setJobParametersIncrementer, setJobParametersValidator, setJobRepository, setMeterRegistry, setName, setObservationConvention, setObservationRegistry, setRestartable, toString
フィールドの詳細
flow
コンストラクターの詳細
メソッドの詳細
setFlow
フローのパブリック setter。- パラメーター:
flow
- 設定する流れ
getStep
指定された名前のステップを取得します。指定された名前のステップがない場合は、null を返します。- 次で指定:
- インターフェース
StepLocator
のgetStep
- 次で指定:
- クラス
AbstractJob
のgetStep
- パラメーター:
stepName
- ステップの名前- 戻り値:
- ステップ
getStepNames
ステップ名を取得します。- 次で指定:
- インターフェース
StepLocator
のgetStepNames
- 次で指定:
- クラス
AbstractJob
のgetStepNames
- 戻り値:
- ステップ名
doExecute
クラスからコピーされた説明:AbstractJob
サブクラスが処理ロジックに集中し、リスナーとリポジトリ呼び出しを無視できるようにする拡張ポイント。実装は通常、ステップの順序に関係し、実際のステップ処理をAbstractJob.handleStep(Step, JobExecution)
に委譲します。- 次で指定:
- クラス
AbstractJob
のdoExecute
- パラメーター:
execution
- 現在のJobExecution
- 例外:
JobExecutionException
- 致命的なバッチフレームワークエラーを通知する (ビジネスまたは検証の例外ではない)- 関連事項: