public class PartitionStepBuilder extends StepBuilderHelper<PartitionStepBuilder>
PartitionStep
インスタンスのステップビルダー。パーティションステップは、(実行コンテキストの形式で)異なる入力パラメーターを使用して同じステップを(場合によってはリモートで)複数回実行します。並列化に役立ちます。StepBuilderHelper.CommonStepProperties
logger, properties
コンストラクターと説明 |
---|
PartitionStepBuilder(StepBuilderHelper<?> parent) 親のプロパティで初期化された新しいビルダーを作成します。 |
allowStartIfComplete, enhance, getJobRepository, getName, getTransactionManager, isAllowStartIfComplete, listener, listener, repository, startLimit, transactionManager
public PartitionStepBuilder(StepBuilderHelper<?> parent)
parent
- 共通のステッププロパティを含む親ヘルパー public PartitionStepBuilder partitioner(java.lang.String workerStepName, Partitioner partitioner)
StepExecutionSplitter
の作成に使用できるパーティショナーを追加します。これまたは明示的な splitter(StepExecutionSplitter)
のいずれかを使用しますが、両方は使用しません。workerStepName
- ワーカーステップの名前 (ステップ実行名の作成に使用)partitioner
- 使用するパーティショナー public PartitionStepBuilder step(Step step)
partitionHandler(PartitionHandler)
が提供される場合、ステップはオプションであり、構成データ(ステップの名前およびその他の基本プロパティ)を抽出するためにのみ使用されます。step
- 並行して実行するステップ public PartitionStepBuilder taskExecutor(org.springframework.core.task.TaskExecutor taskExecutor)
step(Step)
から PartitionHandler
を構築するときに使用するタスクエグゼキュータを提供します。主にローカルで並行してステップを実行するために使用されますが、ステップがリモートの場合はリモートで実行するために使用できます。明示的な partitionHandler(PartitionHandler)
が提供されている場合は使用されません。taskExecutor
- ステップを並行して実行するときに使用するタスクエグゼキュータ public PartitionStepBuilder partitionHandler(PartitionHandler partitionHandler)
partitionHandler
- パーティションハンドラー for setting up a default handler that works with a local or remote Step
public PartitionStepBuilder gridSize(int gridSize)
splitter(StepExecutionSplitter)
へのヒント。taskExecutor(TaskExecutor)
を介してローカルまたはリモートで実行する場合、パーティションのステップ実行の最初の試行でのステップ実行の数を正確に決定します。gridSize
- グリッドサイズ public PartitionStepBuilder splitter(StepExecutionSplitter splitter)
partitioner(String, Partitioner)
から 1 つのビルドを作成する代わりに、明示的な StepExecutionSplitter
を提供します。分割をさらに制御する必要がある場合に便利です。splitter
- ステップ実行スプリッター public PartitionStepBuilder aggregator(StepExecutionAggregator aggregator)
PartitionStep
自体の単一の結果に集約するためのステップ実行アグリゲーターを提供します。デフォルトは、ほとんどの場合に機能する単純な実装です。aggregator
- ステップ実行アグリゲーター public Step build()
protected org.springframework.core.task.TaskExecutor getTaskExecutor()
protected Partitioner getPartitioner()
protected Step getStep()
protected PartitionHandler getPartitionHandler()
protected int getGridSize()
protected StepExecutionSplitter getSplitter()
protected StepExecutionAggregator getAggregator()
protected java.lang.String getStepName()