-
- All Known Implementing Classes:
- PartitionPlanImpl
public interface PartitionPlan
-
-
Method Summary
All Methods Instance Methods Abstract 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
void setPartitions(int count)
Set number of partitions.- Parameters:
count
- specifies the partition count
-
setPartitionsOverride
void setPartitionsOverride(boolean override)
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.
-
getPartitionsOverride
boolean getPartitionsOverride()
Return current value of partition override setting.- Returns:
- override setting.
-
setThreads
void setThreads(int count)
Set number of threads. Defaults to zero, which means thread count is equal to partition count.- Parameters:
count
- specifies the thread count
-
setPartitionProperties
void setPartitionProperties(Properties[] props)
Sets array of substitution Properties objects for the set of Partitions.- Parameters:
props
- specifies the Properties object array
-
getPartitions
int getPartitions()
Gets count of Partitions.- Returns:
- Partition count
-
getThreads
int getThreads()
Gets count of threads.- Returns:
- thread count
-
getPartitionProperties
Properties[] getPartitionProperties()
Gets array of Partition Properties objects for Partitions.- Returns:
- Partition Properties object array
-
-
Document created the 11/06/2005, last modified the 18/08/2025
Source of the printed document:https://www.gaudry.be/en/java-api-javaee-rf-javax/batch/api/partition/PartitionPlan.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author of this site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.