クラス DeployerStepExecutionHandler
java.lang.ObjectSE
org.springframework.cloud.task.batch.partition.DeployerStepExecutionHandler
- 実装されたすべてのインターフェース:
org.springframework.boot.CommandLineRunner
public class DeployerStepExecutionHandler
extends ObjectSE
implements org.springframework.boot.CommandLineRunner
Step
を実行するために使用される CommandLineRunner
。共有ジョブリポジトリからステップ結果が直接取得されるため、関連付けられた DeployerPartitionHandler
に結果は直接提供されません。
StepExecution
は、提供された環境変数に基づいて再水和されます。具体的には、次の変数が必要です。
DeployerPartitionHandler.SPRING_CLOUD_TASK_JOB_EXECUTION_ID
: JobExecution の ID。DeployerPartitionHandler.SPRING_CLOUD_TASK_STEP_EXECUTION_ID
: StepExecution の ID。DeployerPartitionHandler.SPRING_CLOUD_TASK_STEP_NAME
: 実行するステップの Bean 定義の ID。ID は指定されたBeanFactory
内にある必要があります
- 作成者:
- Michael Minella
コンストラクターのサマリー
コンストラクター説明DeployerStepExecutionHandler
(org.springframework.beans.factory.BeanFactory beanFactory, org.springframework.batch.core.explore.JobExplorer jobExplorer, org.springframework.batch.core.repository.JobRepository jobRepository) メソッドのサマリー
コンストラクターの詳細
DeployerStepExecutionHandler
public DeployerStepExecutionHandler(org.springframework.beans.factory.BeanFactory beanFactory, org.springframework.batch.core.explore.JobExplorer jobExplorer, org.springframework.batch.core.repository.JobRepository jobRepository)
メソッドの詳細
run
- 次で指定:
- インターフェース
org.springframework.boot.CommandLineRunner
のrun
- 例外:
ExceptionSE