Top Description Methods
jakarta.batch.api.partition

public Interface PartitionAnalyzer

Known Direct Implementers
jakarta.batch.api.partition.AbstractPartitionAnalyzer
Imports
java.io.Serializable, jakarta.batch.runtime.BatchStatus

PartitionAnalyzer receives control to process data and final results from each partition. If a PartitionCollector is configured on the step, the PartitionAnalyzer receives control to process the data and results from the partition collector. While a separate PartitionCollector instance is invoked on each thread processing a step partition, a single PartitionAnalyzer instance runs on a single, consistent thread each time it is invoked.

Method Summary

Modifier and TypeMethod and Description
public void
analyzeCollectorData(Serializable
specifies the payload sent by a PartitionCollector.
data
)

The analyzeCollectorData method receives control each time a Partition collector sends its payload.

public void
analyzeStatus(BatchStatus
specifies the batch status of a partition.
batchStatus
,
String
specifies the exit status of a partition.
exitStatus
)

The analyzeStatus method receives control each time a partition ends.

Method Detail

analyzeCollectorDataback to summary
public void analyzeCollectorData(Serializable data) throws Exception

The analyzeCollectorData method receives control each time a Partition collector sends its payload. It receives the Serializable object from the collector as an input.

Parameters
data:Serializable

specifies the payload sent by a PartitionCollector.

Exceptions
Exception:
is thrown if an error occurs.
analyzeStatusback to summary
public void analyzeStatus(BatchStatus batchStatus, String exitStatus) throws Exception

The analyzeStatus method receives control each time a partition ends. It receives the batch and exit status strings of the partition as inputs.

Parameters
batchStatus:BatchStatus

specifies the batch status of a partition.

exitStatus:String

specifies the exit status of a partition.

Exceptions
Exception:
is thrown if an error occurs.