-
- All Known Implementing Classes:
- AbstractPartitionReducer
public interface PartitionReducer
PartitionReducer provides unit of work demarcation across partitions. It is not a JTA transaction; no resources are enlisted. Rather, it provides transactional flow semantics to facilitate finalizing merge or compensation logic.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface and Description static class
PartitionReducer.PartitionStatus
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description void
afterPartitionedStepCompletion(PartitionReducer.PartitionStatus status)
The afterPartitionedStepCompletion method receives control at the end of a partition processing.void
beforePartitionedStepCompletion()
The beforePartitionedStepCompletion method receives control at the end of partitioned step processing.void
beginPartitionedStep()
The beginPartitionedStep method receives control at the start of partition processing.void
rollbackPartitionedStep()
The rollbackPartitionedStep method receives control if the runtime is rolling back a partitioned step.
-
-
-
Method Detail
-
beginPartitionedStep
void beginPartitionedStep() throws Exception
The beginPartitionedStep method receives control at the start of partition processing. It receives control before the PartitionMapper is invoked and before any partitions are started.- Throws:
Exception
- is thrown if an error occurs.
-
beforePartitionedStepCompletion
void beforePartitionedStepCompletion() throws Exception
The beforePartitionedStepCompletion method receives control at the end of partitioned step processing. It receives control after all partitions have completed. It does not receive control if the PartitionReducer is rolling back.- Throws:
Exception
- is thrown if an error occurs.
-
rollbackPartitionedStep
void rollbackPartitionedStep() throws Exception
The rollbackPartitionedStep method receives control if the runtime is rolling back a partitioned step. Any partition threads still running are allowed to complete before this method is invoked. This method receives control if any of the following conditions are true:- One or more partitions end with a Batch Status of STOPPED or FAILED.
- Any of the following partitioned step callbacks throw an exception:
- PartitionMapper
- PartitionReducer
- PartitionCollector
- PartitionAnalyzer
- A job with partitioned steps is restarted.
- Throws:
Exception
- is thrown if an error occurs.
-
afterPartitionedStepCompletion
void afterPartitionedStepCompletion(PartitionReducer.PartitionStatus status) throws Exception
The afterPartitionedStepCompletion method receives control at the end of a partition processing. It receives a status value that identifies the outcome of the partition processing. The status string value is either "COMMIT" or "ROLLBACK".- Parameters:
status
- specifies the outcome of the partitioned step. Values are "COMMIT" or "ROLLBACK".- Throws:
Exception
- is thrown if an error occurs.
-
-
Deutsche Übersetzung
Sie haben gebeten, diese Seite auf Deutsch zu besuchen. Momentan ist nur die Oberfläche übersetzt, aber noch nicht der gesamte Inhalt.Wenn Sie mir bei Übersetzungen helfen wollen, ist Ihr Beitrag willkommen. Alles, was Sie tun müssen, ist, sich auf der Website zu registrieren und mir eine Nachricht zu schicken, in der Sie gebeten werden, Sie der Gruppe der Übersetzer hinzuzufügen, die Ihnen die Möglichkeit gibt, die gewünschten Seiten zu übersetzen. Ein Link am Ende jeder übersetzten Seite zeigt an, dass Sie der Übersetzer sind und einen Link zu Ihrem Profil haben.
Vielen Dank im Voraus.
Dokument erstellt 11/06/2005, zuletzt geändert 18/08/2025
Quelle des gedruckten Dokuments:https://www.gaudry.be/de/java-api-javaee-rf-javax/batch/api/partition/PartitionReducer.html
Die Infobro ist eine persönliche Seite, deren Inhalt in meiner alleinigen Verantwortung liegt. Der Text ist unter der CreativeCommons-Lizenz (BY-NC-SA) verfügbar. Weitere Informationen auf die Nutzungsbedingungen und dem Autor.
Referenzen
Diese Verweise und Links verweisen auf Dokumente, die während des Schreibens dieser Seite konsultiert wurden, oder die zusätzliche Informationen liefern können, aber die Autoren dieser Quellen können nicht für den Inhalt dieser Seite verantwortlich gemacht werden.
Der Autor dieser Website ist allein dafür verantwortlich, wie die verschiedenen Konzepte und Freiheiten, die mit den Nachschlagewerken gemacht werden, hier dargestellt werden. Denken Sie daran, dass Sie mehrere Quellinformationen austauschen müssen, um das Risiko von Fehlern zu reduzieren.