public abstract class AbstractPartitionHandler
extends java.lang.Object
implements org.springframework.batch.core.partition.PartitionHandlerPartitionHandler の基本実装。| コンストラクターと説明 |
|---|
AbstractPartitionHandler() 新しい抽象パーティションハンドラーをインスタンス化します。 |
AbstractPartitionHandler(BatchYarnAppmaster batchAppmaster) 新しい抽象パーティションハンドラーをインスタンス化します。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
protected java.util.Map<org.springframework.batch.core.StepExecution,ContainerRequestHint> | createRequestData(java.util.Set<org.springframework.batch.core.StepExecution> stepExecutions) サブクラスはこのメソッドをオーバーライドして、特定の ContainerRequestHint を StepExecution に割り当てることができます。 |
protected abstract java.util.Set<org.springframework.batch.core.StepExecution> | createSplits(org.springframework.batch.core.partition.StepExecutionSplitter stepSplitter, org.springframework.batch.core.StepExecution stepExecution) 分割を作成します。 |
java.lang.String | getKeySplitLocations() キー分割場所を取得します。 |
java.lang.String | getStepName() リモートステップ名を取得します。 |
java.util.Collection<org.springframework.batch.core.StepExecution> | handle(org.springframework.batch.core.partition.StepExecutionSplitter stepSplitter, org.springframework.batch.core.StepExecution stepExecution) |
void | setBatchAppmaster(BatchYarnAppmaster batchAppmaster) バッチアプリマスターを設定します。 |
void | setKeySplitLocations(java.lang.String keySplitLocations) 各 ExecutionContext 内の分割場所のキーの名前。 |
void | setStepName(java.lang.String stepName) リモートステップ名を設定します。 |
void | setYarnAppmaster(YarnAppmaster yarnAppmaster) バッチアプリマスターを設定します。 |
protected void | waitCompleteState(org.springframework.batch.core.StepExecution masterStepExecution)CountDownLatch を使用して、アプリケーションマスターからの完了ステータスを待機します。 |
public AbstractPartitionHandler()
public AbstractPartitionHandler(BatchYarnAppmaster batchAppmaster)
batchAppmaster - バッチアプリマスター public final java.util.Collection<org.springframework.batch.core.StepExecution> handle(org.springframework.batch.core.partition.StepExecutionSplitter stepSplitter,
org.springframework.batch.core.StepExecution stepExecution)
throws java.lang.Exceptionorg.springframework.batch.core.partition.PartitionHandler 内の handle java.lang.Exceptionpublic void setBatchAppmaster(BatchYarnAppmaster batchAppmaster)
batchAppmaster - 新しいバッチアプリマスター setYarnAppmaster(YarnAppmaster)public void setYarnAppmaster(YarnAppmaster yarnAppmaster)
YarnAppmaster として定義されている場合に、アプリケーションコンテキストが BatchYarnAppmaster を自動的に接続できるようにするために YarnAppmaster を使用する特定の方法です。yarnAppmaster - 新しい糸アプリマスター setBatchAppmaster(BatchYarnAppmaster)public void setKeySplitLocations(java.lang.String keySplitLocations)
ExecutionContext 内の分割場所のキーの名前。デフォルトは "splitLocations" です。keySplitLocations - キーの値 public java.lang.String getKeySplitLocations()
public java.lang.String getStepName()
public void setStepName(java.lang.String stepName)
stepName - 新しいリモートステップ名 protected abstract java.util.Set<org.springframework.batch.core.StepExecution> createSplits(org.springframework.batch.core.partition.StepExecutionSplitter stepSplitter,
org.springframework.batch.core.StepExecution stepExecution)
throws java.lang.ExceptionstepSplitter - ステップスプリッター stepExecution - ステップ実行 java.lang.Exception - 例外 protected java.util.Map<org.springframework.batch.core.StepExecution,ContainerRequestHint> createRequestData(java.util.Set<org.springframework.batch.core.StepExecution> stepExecutions) throws java.lang.Exception
ContainerRequestHint を StepExecution に割り当てることができます。これは、データの局所性を考慮して特定のホストまたはラックでステップを実行する必要がある場合に必要になります。デフォルトの実装では空のマップが返されます。
stepExecutions - ステップ実行のセット java.lang.Exception - エラーが発生した場合 protected void waitCompleteState(org.springframework.batch.core.StepExecution masterStepExecution)
CountDownLatch を使用して、アプリケーションマスターからの完了ステータスを待機します。マスター自体または親ステップ実行のいずれかが完了ステータスを送信すると、ステータスは完了したと見なされます。masterStepExecution - 親ステップの実行