クラス RemoteStep
java.lang.ObjectSE
org.springframework.batch.core.step.AbstractStep
org.springframework.batch.integration.remote.RemoteStep
- 実装済みのインターフェース一覧:
Step, StoppableStep, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean
メッセージングを通じて リモートワーカーステップに実行を委譲する
Step 実装。リモートワーカーステップは、ステップ実行リクエストを受信するために、同じメッセージチャネルをリッスンしている必要があります。
ステップ実行はローカルで作成され、リモートワーカーステップに送信され、ジョブリポジトリ内のステータスとコンテキストが更新されます。RemoteStep はジョブリポジトリをポーリングしてステップの完了を確認します。
- 導入:
- 6.0.0
- 作成者:
- Mahmoud Ben Hassine
フィールドのサマリー
クラス AbstractStep から継承されたフィールド
observationRegistryインターフェース Step から継承されたフィールド
STEP_TYPE_KEYコンストラクター概要
コンストラクターコンストラクター説明RemoteStep(StringSE name, StringSE remoteStepName, JobRepository jobRepository, org.springframework.integration.core.MessagingTemplate messagingTemplate) 新しいRemoteStepインスタンスを作成します。方法の概要
修飾子と型メソッド説明protected voiddoExecute(StepExecution stepExecution) ビジネスロジックを実行するサブクラスの拡張ポイント。voidsetMessageChannel(org.springframework.messaging.MessageChannel messageChannel) voidsetPollInterval(long pollInterval) voidsetTimeout(long timeout) クラス AbstractStep から継承されたメソッド
afterPropertiesSet, close, doExecutionRegistration, doExecutionRelease, execute, getCompositeListener, getJobRepository, getName, getStartLimit, isAllowStartIfComplete, open, registerStepExecutionListener, setAllowStartIfComplete, setBeanName, setJobRepository, setName, setObservationRegistry, setStartLimit, setStepExecutionListeners, toStringクラス ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, wait, waitSE, waitSEインターフェース StoppableStep から継承されたメソッド
stop
コンストラクターの詳細
RemoteStep
public RemoteStep(StringSE name, StringSE remoteStepName, JobRepository jobRepository, org.springframework.integration.core.MessagingTemplate messagingTemplate) 新しいRemoteStepインスタンスを作成します。- パラメーター:
name- このステップの名前remoteStepName- 実行するリモートワーカーステップの名前jobRepository- 使用するジョブリポジトリmessagingTemplate- ステップ実行リクエストを送信するために使用するメッセージングテンプレート
メソッドの詳細
setTimeout
public void setTimeout(long timeout) setPollInterval
public void setPollInterval(long pollInterval) setMessageChannel
public void setMessageChannel(org.springframework.messaging.MessageChannel messageChannel) doExecute
クラスからコピーされた説明:AbstractStepビジネスロジックを実行するサブクラスの拡張ポイント。サブクラスは、戻る前にStepExecutionにExitStatusを設定する必要があります。- 次で指定:
- クラス
AbstractStepのdoExecute - パラメーター:
stepExecution- 現在のステップのコンテキスト- 例外:
ExceptionSE- 実装によってスローされたチェック済み例外