クラス PartitionStep
java.lang.ObjectSE
org.springframework.batch.core.step.AbstractStep
org.springframework.batch.core.partition.support.PartitionStep
- 実装されたすべてのインターフェース:
Step
、org.springframework.beans.factory.Aware
、org.springframework.beans.factory.BeanNameAware
、org.springframework.beans.factory.InitializingBean
PartitionHandler
を使用して実行を分割し、負荷を分散する Step
の実装。- 導入:
- 2.0
- 作成者:
- Dave Syer, Mahmoud Ben Hassine
フィールドサマリー
インターフェース org.springframework.batch.core.Step から継承されたフィールド
STEP_TYPE_KEY
コンストラクターのサマリー
メソッドのサマリー
修飾子と型メソッド説明void
必須プロパティ (stepExecutionSplitter、partitionHandler) が設定されていることをアサートし、最上位スーパークラスを委譲します。protected void
doExecute
(StepExecution stepExecution) 提供されたPartitionHandler
に実行を委譲します。protected PartitionHandler
protected StepExecutionSplitter
void
setPartitionHandler
(PartitionHandler partitionHandler) リモート処理のステップ実行を送信し、結果を返すことができるPartitionHandler
。void
setStepExecutionAggregator
(StepExecutionAggregator stepExecutionAggregator) ステップの実行がハンドラーから戻ってきたときに集約できるStepExecutionAggregator
。void
setStepExecutionSplitter
(StepExecutionSplitter stepExecutionSplitter) 必須プロパティStepExecutionSplitter
のパブリック setter。クラス org.springframework.batch.core.step.AbstractStep から継承されたメソッド
close, doExecutionRegistration, doExecutionRelease, execute, getCompositeListener, getJobRepository, getName, getStartLimit, isAllowStartIfComplete, open, registerStepExecutionListener, setAllowStartIfComplete, setBeanName, setJobRepository, setMeterRegistry, setName, setObservationConvention, setObservationRegistry, setStartLimit, setStepExecutionListeners, toString
コンストラクターの詳細
PartitionStep
public PartitionStep()
メソッドの詳細
setPartitionHandler
リモート処理のステップ実行を送信し、結果を返すことができるPartitionHandler
。- パラメーター:
partitionHandler
- 設定するPartitionHandler
setStepExecutionAggregator
ステップの実行がハンドラーから戻ってきたときに集約できるStepExecutionAggregator
。デフォルトはDefaultStepExecutionAggregator
です。- パラメーター:
stepExecutionAggregator
- 設定するStepExecutionAggregator
setStepExecutionSplitter
必須プロパティStepExecutionSplitter
のパブリック setter。- パラメーター:
stepExecutionSplitter
- 設定するStepExecutionSplitter
afterPropertiesSet
必須プロパティ (stepExecutionSplitter、partitionHandler) が設定されていることをアサートし、最上位スーパークラスを委譲します。- 次で指定:
- インターフェース
org.springframework.beans.factory.InitializingBean
のafterPropertiesSet
- オーバーライド:
- クラス
AbstractStep
のafterPropertiesSet
- 例外:
ExceptionSE
- 関連事項:
doExecute
提供されたPartitionHandler
に実行を委譲します。ここで渡されるStepExecution
は、パーティションの親またはマネージャーの実行になり、PartitionHandler
によって実行される作業の論理グループの終了時のステータスを要約します。パーティション要素の個々のステップ実行とその入力パラメーター (ExecutionContext
を介して) は、StepExecutionSplitter
によって提供されます。- 次で指定:
- クラス
AbstractStep
のdoExecute
- パラメーター:
stepExecution
- パーティションのマネージャーステップの実行- 例外:
ExceptionSE
- 実装によってスローされたチェック済み例外- 関連事項:
getStepExecutionSplitter
getPartitionHandler