|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.batch.api.partition.PartitionPlanImpl
public class PartitionPlanImpl
The PartitionPlanImpl class provides a basic implementation of the PartitionPlan interface.
| Constructor Summary | |
|---|---|
PartitionPlanImpl()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PartitionPlanImpl()
| Method Detail |
|---|
public void setPartitions(int count)
PartitionPlan
setPartitions in interface PartitionPlancount - specifies the partition countpublic void setThreads(int count)
PartitionPlan
setThreads in interface PartitionPlancount - specifies the thread countpublic void setPartitionsOverride(boolean override)
PartitionPlanWhen 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.
setPartitionsOverride in interface PartitionPlanpublic boolean getPartitionsOverride()
PartitionPlan
getPartitionsOverride in interface PartitionPlanpublic void setPartitionProperties(Properties[] props)
PartitionPlan
setPartitionProperties in interface PartitionPlanprops - specifies the Properties object arraypublic int getPartitions()
PartitionPlan
getPartitions in interface PartitionPlanpublic int getThreads()
PartitionPlan
getThreads in interface PartitionPlanpublic Properties[] getPartitionProperties()
PartitionPlan
getPartitionProperties in interface PartitionPlan
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||