public class JsrStepHandler extends SimpleStepHandler
SimpleStepHandler
を拡張して、ステップを開始するかどうかの JSR-352 固有のロジックを適用します。コンストラクターと説明 |
---|
JsrStepHandler(JobRepository jobRepository, JobExplorer jobExplorer) |
修飾子と型 | メソッドと説明 |
---|---|
void | afterPropertiesSet() 必須プロパティ(jobRepository)を確認してください。 |
protected boolean | shouldStart(StepExecution lastStepExecution, JobExecution jobExecution, Step step) ステップと構成を指定して、ステップを開始する必要がある場合は true を返し、開始しない場合は false を返し、ジョブを終了する必要がある場合は例外をスローします。 |
getJobRepository, handleStep, setExecutionContext, setJobRepository
public JsrStepHandler(JobRepository jobRepository, JobExplorer jobExplorer)
jobRepository
- JobRepository
のインスタンス。jobExplorer
- JobExplorer
のインスタンス。public void afterPropertiesSet() throws java.lang.Exception
SimpleStepHandler
org.springframework.beans.factory.InitializingBean
の afterPropertiesSet
SimpleStepHandler
の afterPropertiesSet
java.lang.Exception
InitializingBean.afterPropertiesSet()
protected boolean shouldStart(StepExecution lastStepExecution, JobExecution jobExecution, Step step) throws JobRestartException, StartLimitExceededException
SimpleStepHandler
の shouldStart
lastStepExecution
- 最後のステップの実行 jobExecution
- JobExecution
のインスタンス step
- Step
のインスタンス StartLimitExceededException
- このステップの開始制限を超えている場合 JobRestartException
- ジョブが以前の失敗と矛盾した状態にある場合