クラスの使用
org.springframework.batch.core.StepExecution
StepExecution を使用するパッケージ
パッケージ
説明
ジョブ、ステップ、構成、実行の抽象化をカバーする Spring Batch のコアドメインコンテキスト。
メタデータの閲覧をサポートするインターフェースと関連クラス。
エクスプローラー関心事の特定実装。
ジョブ関心事の特定実装。
フローインターフェース、エグゼキュータ、関連する例外を含むフロー関連の構造
フロー構造の基本的な実装
コアバッチリスナーインターフェースの一般的な実装。
このパッケージには、バッチの可観測性に関連する API が含まれています。
コンポーネントを分割するためのインターフェース。
共通パーティションコンポーネントの実装。
リポジトリの関心事のインターフェースと一般的な実装。
dao 関心事の特定実装。
リポジトリの問題の特定の実装。
Spring Batch(ジョブとステップ)の各カスタム Bean スコープのコンテキストの実装。
ステップに関する特定の実装。
アイテム指向アプローチのステップに関する特定の実装。
JobStep
および関連コンポーネント。 タスクレット関連のインターフェースおよび一般的な実装。
リモートチャンキングのコンポーネント。
リモートパーティショニングコンポーネント。
Spring Integration で使用する場合、ステップに関連するクラスをサポートします。
バッチジョブ / ステップテストのユーティリティクラス。
org.springframework.batch.core 内の StepExecution 使用
StepExecution を返す org.springframework.batch.core のメソッド修飾子と型メソッド説明JobExecution.createStepExecution
(StringSE stepName) 現在のジョブ実行にステップ実行を登録します。StepContribution.getStepExecution()
このコントリビューションの親ステップ実行用のパブリック getter。型 StepExecution の引数を持つ型を返す org.springframework.batch.core のメソッド型 StepExecution のパラメーターを持つ org.springframework.batch.core のメソッド修飾子と型メソッド説明default ExitStatus
StepExecutionListener.afterStep
(StepExecution stepExecution) リスナーにステップの終了ステータスを変更する機会を与えます。default void
StepExecutionListener.beforeStep
(StepExecution stepExecution) 現在のスコープのStepExecution
を使用して、リスナーの状態を初期化します。void
Step.execute
(StepExecution stepExecution) ステップを処理し、提供されたStepExecution
に進行状況とステータスのメタ情報を割り当てます。型 StepExecution の型引数を持つ org.springframework.batch.core のメソッドパラメーター修飾子と型メソッド説明void
JobExecution.addStepExecutions
(ListSE<StepExecution> stepExecutions) いくつかのステップ実行を追加します。型 StepExecution のパラメーターを持つ org.springframework.batch.core のコンストラクターorg.springframework.batch.core.explore 内の StepExecution 使用
修飾子と型メソッド説明JobExplorer.getStepExecution
(LongSE jobExecutionId, LongSE stepExecutionId) ID と親JobExecution
ID によってStepExecution
を取得します。org.springframework.batch.core.explore.support 内の StepExecution 使用
org.springframework.batch.core.job 内の StepExecution 使用
修飾子と型メソッド説明protected final StepExecution
AbstractJob.handleStep
(Step step, JobExecution execution) 現在のJobExecution
のコンテキストで特定のステップの処理を委譲するためのサブクラスの簡易メソッド。SimpleStepHandler.handleStep
(Step step, JobExecution execution) StepHandler.handleStep
(Step step, JobExecution jobExecution) ステップを処理し、その実行を返します。型 StepExecution のパラメーターを持つ org.springframework.batch.core.job のメソッド修飾子と型メソッド説明protected boolean
SimpleStepHandler.shouldStart
(StepExecution lastStepExecution, JobExecution jobExecution, Step step) ステップと構成を指定して、ステップを開始する必要がある場合は true を返し、開始しない場合は false を返し、ジョブを終了する必要がある場合は例外をスローします。org.springframework.batch.core.job.flow 内の StepExecution 使用
型 StepExecution のパラメーターを持つ org.springframework.batch.core.job.flow のメソッド修飾子と型メソッド説明JobExecutionDecider.decide
(JobExecution jobExecution, StepExecution stepExecution) 進行中のJobExecution
の状態に基づいて実行を分岐するための戦略。protected void
FlowStep.doExecute
(StepExecution stepExecution) ステップの実行のために提供されたフローに委譲します。org.springframework.batch.core.job.flow.support 内の StepExecution 使用
型 StepExecution のパラメーターを持つ org.springframework.batch.core.job.flow.support のメソッド修飾子と型メソッド説明protected boolean
SimpleFlow.isFlowContinued
(State state, FlowExecutionStatus status, StepExecution stepExecution) protected State
SimpleFlow.nextState
(StringSE stateName, FlowExecutionStatus status, StepExecution stepExecution) org.springframework.batch.core.listener 内の StepExecution 使用
型 StepExecution のパラメーターを持つ org.springframework.batch.core.listener のメソッド修飾子と型メソッド説明CompositeStepExecutionListener.afterStep
(StepExecution stepExecution) 登録されたリスナーを逆の順序で呼び出し、Ordered
を実装するリスナーを考慮して優先順位を付けます。ExecutionContextPromotionListener.afterStep
(StepExecution stepExecution) MulticasterBatchListener.afterStep
(StepExecution stepExecution) StepExecutionListenerSupport.afterStep
(StepExecution stepExecution) 使用すべきではありません。void
CompositeStepExecutionListener.beforeStep
(StepExecution stepExecution) Ordered
を実装するリスナーを考慮し、優先順位を付けて、登録済みのリスナーを順番に呼び出します。void
JobParameterExecutionContextCopyListener.beforeStep
(StepExecution stepExecution) void
MulticasterBatchListener.beforeStep
(StepExecution stepExecution) void
StepExecutionListenerSupport.beforeStep
(StepExecution stepExecution) 使用すべきではありません。org.springframework.batch.core.observability 内の StepExecution 使用
型 StepExecution のパラメーターを持つ org.springframework.batch.core.observability のコンストラクターorg.springframework.batch.core.partition 内の StepExecution 使用
型 StepExecution の引数を持つ型を返す org.springframework.batch.core.partition のメソッド修飾子と型メソッド説明PartitionHandler.handle
(StepExecutionSplitter stepSplitter, StepExecution stepExecution) PartitionHandler
インターフェースのメインエントリポイント。StepExecutionSplitter.split
(StepExecution stepExecution, int gridSize) 提供されたStepExecution
を、同じ親JobExecution
を持つ並列実行可能インスタンスのセットに分割します。型 StepExecution のパラメーターを持つ org.springframework.batch.core.partition のメソッド修飾子と型メソッド説明PartitionHandler.handle
(StepExecutionSplitter stepSplitter, StepExecution stepExecution) PartitionHandler
インターフェースのメインエントリポイント。StepExecutionSplitter.split
(StepExecution stepExecution, int gridSize) 提供されたStepExecution
を、同じ親JobExecution
を持つ並列実行可能インスタンスのセットに分割します。org.springframework.batch.core.partition.support 内の StepExecution 使用
型 StepExecution の引数を持つ型を返す org.springframework.batch.core.partition.support のメソッド修飾子と型メソッド説明protected FutureTaskSE<StepExecution>
TaskExecutorPartitionHandler.createTask
(Step step, StepExecution stepExecution) 指定された実行のコンテキストで指定されたステップを実行するタスクを作成します。protected abstract SetSE<StepExecution>
AbstractPartitionHandler.doHandle
(StepExecution managerStepExecution, SetSE<StepExecution> partitionStepExecutions) 指定されたStepExecution
インスタンスを実行し、それらの更新されたビューを返します。protected SetSE<StepExecution>
TaskExecutorPartitionHandler.doHandle
(StepExecution managerStepExecution, SetSE<StepExecution> partitionStepExecutions) AbstractPartitionHandler.handle
(StepExecutionSplitter stepSplitter, StepExecution managerStepExecution) SimpleStepExecutionSplitter.split
(StepExecution stepExecution, int gridSize) 型 StepExecution のパラメーターを持つ org.springframework.batch.core.partition.support のメソッド修飾子と型メソッド説明void
DefaultStepExecutionAggregator.aggregate
(StepExecution result, CollectionSE<StepExecution> executions) 入力実行を結果StepExecution
に集約します。void
RemoteStepExecutionAggregator.aggregate
(StepExecution result, CollectionSE<StepExecution> executions) 入力がJobExplorer
からリフレッシュされると、入力の実行を結果StepExecution
に集約し、デリゲートアグリゲーターに委譲します。void
StepExecutionAggregator.aggregate
(StepExecution result, CollectionSE<StepExecution> executions) 入力を受け取って集約し、集約を結果に入れます。protected FutureTaskSE<StepExecution>
TaskExecutorPartitionHandler.createTask
(Step step, StepExecution stepExecution) 指定された実行のコンテキストで指定されたステップを実行するタスクを作成します。protected void
PartitionStep.doExecute
(StepExecution stepExecution) 提供されたPartitionHandler
に実行を委譲します。protected abstract SetSE<StepExecution>
AbstractPartitionHandler.doHandle
(StepExecution managerStepExecution, SetSE<StepExecution> partitionStepExecutions) 指定されたStepExecution
インスタンスを実行し、それらの更新されたビューを返します。protected SetSE<StepExecution>
TaskExecutorPartitionHandler.doHandle
(StepExecution managerStepExecution, SetSE<StepExecution> partitionStepExecutions) AbstractPartitionHandler.handle
(StepExecutionSplitter stepSplitter, StepExecution managerStepExecution) protected boolean
SimpleStepExecutionSplitter.isStartable
(StepExecution stepExecution, ExecutionContext context) ステップ実行が開始可能かどうかを確認します。SimpleStepExecutionSplitter.split
(StepExecution stepExecution, int gridSize) 型 StepExecution の型引数を持つ org.springframework.batch.core.partition.support のメソッドパラメーター修飾子と型メソッド説明void
DefaultStepExecutionAggregator.aggregate
(StepExecution result, CollectionSE<StepExecution> executions) 入力実行を結果StepExecution
に集約します。void
RemoteStepExecutionAggregator.aggregate
(StepExecution result, CollectionSE<StepExecution> executions) 入力がJobExplorer
からリフレッシュされると、入力の実行を結果StepExecution
に集約し、デリゲートアグリゲーターに委譲します。void
StepExecutionAggregator.aggregate
(StepExecution result, CollectionSE<StepExecution> executions) 入力を受け取って集約し、集約を結果に入れます。protected abstract SetSE<StepExecution>
AbstractPartitionHandler.doHandle
(StepExecution managerStepExecution, SetSE<StepExecution> partitionStepExecutions) 指定されたStepExecution
インスタンスを実行し、それらの更新されたビューを返します。protected SetSE<StepExecution>
TaskExecutorPartitionHandler.doHandle
(StepExecution managerStepExecution, SetSE<StepExecution> partitionStepExecutions) org.springframework.batch.core.repository 内の StepExecution 使用
型 StepExecution のパラメーターを持つ org.springframework.batch.core.repository のメソッド修飾子と型メソッド説明void
JobRepository.add
(StepExecution stepExecution) StepExecution
とそのExecutionContext
を保存します。default void
JobRepository.deleteStepExecution
(StepExecution stepExecution) ステップ実行をその実行コンテキストとともに削除します。void
JobRepository.update
(StepExecution stepExecution) StepExecution
を更新します(ただし、ExecutionContext
は更新しません)。void
JobRepository.updateExecutionContext
(StepExecution stepExecution) 指定されたStepExecution
の更新されたExecutionContext
を永続化します。型 StepExecution の型引数を持つ org.springframework.batch.core.repository のメソッドパラメーター修飾子と型メソッド説明void
JobRepository.addAll
(CollectionSE<StepExecution> stepExecutions) StepExecution
と各ExecutionContext
のコレクションを保存します。org.springframework.batch.core.repository.dao 内の StepExecution 使用
修飾子と型メソッド説明JdbcStepExecutionDao.getLastStepExecution
(JobInstance jobInstance, StringSE stepName) default StepExecution
StepExecutionDao.getLastStepExecution
(JobInstance jobInstance, StringSE stepName) 指定されたJobInstance
の最後のStepExecution
を、作成時間、ID の順に並べて取得します。JdbcStepExecutionDao.getStepExecution
(JobExecution jobExecution, LongSE stepExecutionId) StepExecutionDao.getStepExecution
(JobExecution jobExecution, LongSE stepExecutionId) その ID からStepExecution
を取得します。型 StepExecution のパラメーターを持つ org.springframework.batch.core.repository.dao のメソッド修飾子と型メソッド説明default void
ExecutionContextDao.deleteExecutionContext
(StepExecution stepExecution) 指定されたStepExecution
の実行コンテキストを削除します。void
JdbcExecutionContextDao.deleteExecutionContext
(StepExecution stepExecution) 指定されたStepExecution
の実行コンテキストを削除します。void
JdbcStepExecutionDao.deleteStepExecution
(StepExecution stepExecution) 指定されたステップ実行を削除します。default void
StepExecutionDao.deleteStepExecution
(StepExecution stepExecution) 指定されたステップ実行を削除します。ExecutionContextDao.getExecutionContext
(StepExecution stepExecution) JdbcExecutionContextDao.getExecutionContext
(StepExecution stepExecution) void
ExecutionContextDao.saveExecutionContext
(StepExecution stepExecution) 指定された stepExecution に関連付けられた実行コンテキストを永続化します。コンテキストの永続エントリはまだ存在していないはずです。void
JdbcExecutionContextDao.saveExecutionContext
(StepExecution stepExecution) void
JdbcStepExecutionDao.saveStepExecution
(StepExecution stepExecution) StepExecution を保存します。void
StepExecutionDao.saveStepExecution
(StepExecution stepExecution) 指定された StepExecution を保存します。void
ExecutionContextDao.updateExecutionContext
(StepExecution stepExecution) 指定された stepExecution に関連付けられた実行コンテキストの更新を永続化します。void
JdbcExecutionContextDao.updateExecutionContext
(StepExecution stepExecution) void
JdbcStepExecutionDao.updateStepExecution
(StepExecution stepExecution) void
StepExecutionDao.updateStepExecution
(StepExecution stepExecution) 指定された StepExecution を更新します型 StepExecution の型引数を持つ org.springframework.batch.core.repository.dao のメソッドパラメーター修飾子と型メソッド説明void
ExecutionContextDao.saveExecutionContexts
(CollectionSE<StepExecution> stepExecutions) 特定のコレクション内の各 stepExecution に関連付けられた実行コンテキストを永続化します。コンテキストの永続エントリはまだ存在していないはずです。void
JdbcExecutionContextDao.saveExecutionContexts
(CollectionSE<StepExecution> stepExecutions) void
JdbcStepExecutionDao.saveStepExecutions
(CollectionSE<StepExecution> stepExecutions) StepExecutions のバッチ挿入void
StepExecutionDao.saveStepExecutions
(CollectionSE<StepExecution> stepExecutions) StepExecution の指定されたコレクションをバッチとして保存します。org.springframework.batch.core.repository.support 内の StepExecution 使用
型 StepExecution のパラメーターを持つ org.springframework.batch.core.repository.support のメソッド修飾子と型メソッド説明void
SimpleJobRepository.add
(StepExecution stepExecution) void
SimpleJobRepository.deleteStepExecution
(StepExecution stepExecution) void
SimpleJobRepository.update
(StepExecution stepExecution) void
SimpleJobRepository.updateExecutionContext
(StepExecution stepExecution) 型 StepExecution の型引数を持つ org.springframework.batch.core.repository.support のメソッドパラメーターorg.springframework.batch.core.resource 内の StepExecution 使用
型 StepExecution のパラメーターを持つ org.springframework.batch.core.resource のメソッド修飾子と型メソッド説明void
StepExecutionSimpleCompletionPolicy.beforeStep
(StepExecution stepExecution) JobParameters
から取得したコミット間隔でSimpleCompletionPolicy
をセットアップします。org.springframework.batch.core.scope.context 内の StepExecution 使用
型 StepExecution のパラメーターを持つ org.springframework.batch.core.scope.context のメソッド修飾子と型メソッド説明void
StepScopeManager.execute
(Step step, StepExecution stepExecution) static StepContext
StepSynchronizationManager.register
(StepExecution stepExecution) コンテキストを現在のスレッドに登録します。常に一致するStepSynchronizationManager.close()
呼び出しを finally ブロックに入れて、囲んでいるブロックで正しいコンテキストが使用できるようにします。型 StepExecution のパラメーターを持つ org.springframework.batch.core.scope.context のコンストラクター修飾子コンストラクター説明StepContext
(StepExecution stepExecution) このStepExecution
のStepContext
の新しいインスタンスを作成します。StepContextRepeatCallback
(StepExecution stepExecution) org.springframework.batch.core.step 内の StepExecution 使用
型 StepExecution のパラメーターを持つ org.springframework.batch.core.step のメソッド修飾子と型メソッド説明NoWorkFoundStepExecutionListener.afterStep
(StepExecution stepExecution) void
StepInterruptionPolicy.checkInterrupted
(StepExecution stepExecution) ジョブは中断されましたか? もしそうなら、JobInterruptedException
を投げます。void
ThreadStepInterruptionPolicy.checkInterrupted
(StepExecution stepExecution) 現在のスレッドが中断されているかどうかを確認することにより、現在のジョブライフサイクルが中断されているかどうかを返します。protected abstract void
AbstractStep.doExecute
(StepExecution stepExecution) ビジネスロジックを実行するサブクラスの拡張ポイント。protected void
AbstractStep.doExecutionRegistration
(StepExecution stepExecution) StepScope
によるプロパティ解決のためにStepExecution
を登録しますfinal void
AbstractStep.execute
(StepExecution stepExecution) ステップ実行ロジックのテンプレートメソッド - リソースの初期化(AbstractStep.open(ExecutionContext)
)、実行ロジック(AbstractStep.doExecute(StepExecution)
)およびリソースのクローズ(AbstractStep.close(ExecutionContext)
)の抽象メソッドを呼び出します。org.springframework.batch.core.step.item 内の StepExecution 使用
型 StepExecution のパラメーターを持つ org.springframework.batch.core.step.item のメソッド修飾子と型メソッド説明protected void
SimpleChunkProcessor.stopTimer
(io.micrometer.core.instrument.Timer.Sample sample, StepExecution stepExecution, StringSE metricName, StringSE status, StringSE description) org.springframework.batch.core.step.job 内の StepExecution 使用
型 StepExecution のパラメーターを持つ org.springframework.batch.core.step.job のメソッド修飾子と型メソッド説明protected void
JobStep.doExecute
(StepExecution stepExecution) JobLauncher
に委譲することによって提供されるジョブを実行して、重複した実行を防止します。DefaultJobParametersExtractor.getJobParameters
(Job job, StepExecution stepExecution) JobParametersExtractor.getJobParameters
(Job job, StepExecution stepExecution) ステップ実行から、たとえば実行コンテキストや他のプロパティからジョブパラメーターを抽出します。org.springframework.batch.core.step.tasklet 内の StepExecution 使用
型 StepExecution のパラメーターを持つ org.springframework.batch.core.step.tasklet のメソッド修飾子と型メソッド説明void
SystemCommandTasklet.beforeStep
(StepExecution stepExecution) システムコマンド実行中の割り込みチェックのためにStepExecution
への参照を取得します。protected void
TaskletStep.doExecute
(StepExecution stepExecution) ステップを処理し、そのコンテキストを更新して、呼び出し側が進行状況を監視できるようにします。org.springframework.batch.integration.chunk 内の StepExecution 使用
型 StepExecution のパラメーターを持つ org.springframework.batch.integration.chunk のメソッド修飾子と型メソッド説明ChunkMessageChannelItemWriter.afterStep
(StepExecution stepExecution) void
ChunkMessageChannelItemWriter.beforeStep
(StepExecution stepExecution) void
ChunkMessageChannelItemWriter.LocalState.setStepExecution
(StepExecution stepExecution) org.springframework.batch.integration.partition 内の StepExecution 使用
型 StepExecution の引数を持つ型を返す org.springframework.batch.integration.partition のメソッド修飾子と型メソッド説明protected SetSE<StepExecution>
MessageChannelPartitionHandler.doHandle
(StepExecution managerStepExecution, SetSE<StepExecution> partitionStepExecutions) StepExecutionRequest
オブジェクトをMessagingTemplate
のリクエストチャネルに送信し、その結果を応答チャネルでStepExecution
のリストとして受信します。型 StepExecution のパラメーターを持つ org.springframework.batch.integration.partition のメソッド修飾子と型メソッド説明protected SetSE<StepExecution>
MessageChannelPartitionHandler.doHandle
(StepExecution managerStepExecution, SetSE<StepExecution> partitionStepExecutions) StepExecutionRequest
オブジェクトをMessagingTemplate
のリクエストチャネルに送信し、その結果を応答チャネルでStepExecution
のリストとして受信します。型 StepExecution の型引数を持つ org.springframework.batch.integration.partition のメソッドパラメーター修飾子と型メソッド説明protected SetSE<StepExecution>
MessageChannelPartitionHandler.doHandle
(StepExecution managerStepExecution, SetSE<StepExecution> partitionStepExecutions) StepExecutionRequest
オブジェクトをMessagingTemplate
のリクエストチャネルに送信し、その結果を応答チャネルでStepExecution
のリストとして受信します。org.springframework.batch.integration.step 内の StepExecution 使用
型 StepExecution のパラメーターを持つ org.springframework.batch.integration.step のメソッド修飾子と型メソッド説明protected void
DelegateStep.doExecute
(StepExecution stepExecution) 非推奨、削除予定: この API 要素は、将来のバージョンで削除される可能性があります。org.springframework.batch.test 内の StepExecution 使用
StepExecution を返す org.springframework.batch.test のメソッド修飾子と型メソッド説明static StepExecution
MetaDataInstanceFactory.createStepExecution()
デフォルトのパラメーターを使用してStepExecution
を作成します。static StepExecution
MetaDataInstanceFactory.createStepExecution
(StringSE stepName, LongSE executionId) 提供されたパラメーターを使用してStepExecution
を作成します。static StepExecution
MetaDataInstanceFactory.createStepExecution
(JobExecution jobExecution, StringSE stepName, LongSE executionId) 提供されたパラメーターを使用してStepExecution
を作成します。static StepExecution
MetaDataInstanceFactory.createStepExecution
(JobParameters jobParameters) StepExecution
とそのすべての親エンティティをデフォルト値で作成しますが、提供されているJobParameters
を使用します。static StepExecution
MetaDataInstanceFactory.createStepExecution
(JobParameters jobParameters, ExecutionContext executionContext) static StepExecution
MetaDataInstanceFactory.createStepExecution
(ExecutionContext executionContext) StepExecution
とそのすべての親エンティティをデフォルト値で作成しますが、提供されているExecutionContext
を使用します。protected StepExecution
StepScopeTestExecutionListener.getStepExecution
(org.springframework.test.context.TestContext testContext) StepExecution
をテストケースのフィールドとして検出するか、利用できない場合は作成します。型 StepExecution のパラメーターを持つ org.springframework.batch.test のメソッド修飾子と型メソッド説明static <T> T
StepScopeTestUtils.doInStepScope
(StepExecution stepExecution, CallableSE<T> callable) static <T> T
ExecutionContextTestUtils.getValueFromStep
(StepExecution stepExecution, StringSE key)