- java.lang.Object
-
- javax.batch.api.partition.PartitionPlanImpl
-
- All Implemented Interfaces:
- PartitionPlan
public class PartitionPlanImpl extends Object implements PartitionPlan
The PartitionPlanImpl class provides a basic implementation of the PartitionPlan interface.
-
-
Constructor Summary
Constructors Constructor and Description PartitionPlanImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Properties[]
getPartitionProperties()
Gets array of Partition Properties objects for Partitions.int
getPartitions()
Gets count of Partitions.boolean
getPartitionsOverride()
Return current value of partition override setting.int
getThreads()
Gets count of threads.void
setPartitionProperties(Properties[] props)
Sets array of substitution Properties objects for the set of Partitions.void
setPartitions(int count)
Set number of partitions.void
setPartitionsOverride(boolean override)
Specify whether or not to override the partition count from the previous job execution.void
setThreads(int count)
Set number of threads.
-
-
-
Method Detail
-
setPartitions
public void setPartitions(int count)
Description copied from interface:PartitionPlan
Set number of partitions.- Specified by:
setPartitions
in interfacePartitionPlan
- Parameters:
count
- specifies the partition count
-
setThreads
public void setThreads(int count)
Description copied from interface:PartitionPlan
Set number of threads. Defaults to zero, which means thread count is equal to partition count.- Specified by:
setThreads
in interfacePartitionPlan
- Parameters:
count
- specifies the thread count
-
setPartitionsOverride
public void setPartitionsOverride(boolean override)
Description copied from interface:PartitionPlan
Specify whether or not to override the partition count from the previous job execution. This applies only to step restart. The default is false.When false is specified, the partition count from the previous job execution is used and any new value set for partition count in the current run is ignored. In addition, partition results from the previous job execution are remembered, and only incomplete partitions are reprocessed.
When true is specified, the partition count from the current run is used and all results from past partitions are discarded. Any resource cleanup or back out of work done in the previous run is the responsibility of the application. The PartitionReducer artifact's rollbackPartitionedStep method is invoked during restart before any partitions begin processing to provide a cleanup hook.
- Specified by:
setPartitionsOverride
in interfacePartitionPlan
-
getPartitionsOverride
public boolean getPartitionsOverride()
Description copied from interface:PartitionPlan
Return current value of partition override setting.- Specified by:
getPartitionsOverride
in interfacePartitionPlan
- Returns:
- override setting.
-
setPartitionProperties
public void setPartitionProperties(Properties[] props)
Description copied from interface:PartitionPlan
Sets array of substitution Properties objects for the set of Partitions.- Specified by:
setPartitionProperties
in interfacePartitionPlan
- Parameters:
props
- specifies the Properties object array
-
getPartitions
public int getPartitions()
Description copied from interface:PartitionPlan
Gets count of Partitions.- Specified by:
getPartitions
in interfacePartitionPlan
- Returns:
- Partition count
-
getThreads
public int getThreads()
Description copied from interface:PartitionPlan
Gets count of threads.- Specified by:
getThreads
in interfacePartitionPlan
- Returns:
- thread count
-
getPartitionProperties
public Properties[] getPartitionProperties()
Description copied from interface:PartitionPlan
Gets array of Partition Properties objects for Partitions.- Specified by:
getPartitionProperties
in interfacePartitionPlan
- Returns:
- Partition Properties object array
-
-
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/PartitionPlanImpl.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.