クラス AbstractPartitionReducer
- java.lang.ObjectSE
-
- jakarta.batch.api.partition.AbstractPartitionReducer
- 実装されているすべてのインターフェース:
PartitionReducer
public abstract class AbstractPartitionReducer extends ObjectSE implements PartitionReducer
AbstractBatchlet は、あまり一般的ではないメソッドのデフォルト実装を提供します。
ネストされたクラスの要約
インターフェース jakarta.batch.api.partition.PartitionReducer から継承されたネストクラス / インターフェース
PartitionReducer.PartitionStatus
コンストラクターの概要
コンストラクター コンストラクター 説明 AbstractPartitionReducer()
方法の概要
すべてのメソッド インスタンスメソッド 具象メソッド 修飾子と型 メソッド 説明 voidafterPartitionedStepCompletion(PartitionReducer.PartitionStatus status)このメソッドをオーバーライドして、パーティション化されたステップの処理が終了した後にアクションを実行します。voidbeforePartitionedStepCompletion()このメソッドをオーバーライドして、通常のパーティション化されたステップ処理が終了する前にアクションを実行します。voidbeginPartitionedStep()このメソッドをオーバーライドして、パーティション化されたステップ処理を開始する前にアクションを実行します。voidrollbackPartitionedStep()パーティション化されたステップがロールバックしているときにアクションを実行するには、このメソッドをオーバーライドします。
メソッドの詳細
beginPartitionedStep
public void beginPartitionedStep() throws ExceptionSEこのメソッドをオーバーライドして、パーティション化されたステップ処理を開始する前にアクションを実行します。- 次で指定:
- インターフェース
PartitionReducerのbeginPartitionedStep - 例外:
ExceptionSE- エラーが発生した場合にスローされます。
beforePartitionedStepCompletion
public void beforePartitionedStepCompletion() throws ExceptionSEこのメソッドをオーバーライドして、通常のパーティション化されたステップ処理が終了する前にアクションを実行します。- 次で指定:
- インターフェース
PartitionReducerのbeforePartitionedStepCompletion - 例外:
ExceptionSE- エラーが発生した場合にスローされます。
rollbackPartitionedStep
public void rollbackPartitionedStep() throws ExceptionSEパーティション化されたステップがロールバックしているときにアクションを実行するには、このメソッドをオーバーライドします。- 次で指定:
- インターフェース
PartitionReducerのrollbackPartitionedStep - 例外:
ExceptionSE- エラーが発生した場合にスローされます。
afterPartitionedStepCompletion
public void afterPartitionedStepCompletion(PartitionReducer.PartitionStatus status) throws ExceptionSE
このメソッドをオーバーライドして、パーティション化されたステップの処理が終了した後にアクションを実行します。- 次で指定:
- インターフェース
PartitionReducerのafterPartitionedStepCompletion - パラメーター:
status- 分割されたステップの結果を指定します。値は "COMMIT" または "ROLLBACK" です。- 例外:
ExceptionSE- エラーが発生した場合にスローされます。