public static class JsrPartitionHandler.PartitionPlanState
extends java.lang.Object
implements javax.batch.api.partition.PartitionPlan, java.io.Serializable
PartitionPlan could provide dynamic data (different results from run to run),
the batch runtime needs to save off the results for restarts. This class serves as a container
used to save off that state.| Constructor and Description |
|---|
PartitionPlanState() |
PartitionPlanState(javax.batch.api.partition.PartitionPlan plan) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Properties[] |
getPartitionProperties() |
int |
getPartitions() |
boolean |
getPartitionsOverride() |
int |
getThreads() |
void |
setPartitionPlan(javax.batch.api.partition.PartitionPlan plan) |
void |
setPartitionProperties(java.util.Properties[] props) |
void |
setPartitions(int count) |
void |
setPartitionsOverride(boolean override) |
void |
setThreads(int count) |
public PartitionPlanState(javax.batch.api.partition.PartitionPlan plan)
plan - the PartitionPlan that is the source of the statepublic PartitionPlanState()
public void setPartitionPlan(javax.batch.api.partition.PartitionPlan plan)
public java.util.Properties[] getPartitionProperties()
getPartitionProperties in interface javax.batch.api.partition.PartitionPlanpublic int getPartitions()
getPartitions in interface javax.batch.api.partition.PartitionPlanpublic int getThreads()
getThreads in interface javax.batch.api.partition.PartitionPlanpublic void setPartitions(int count)
setPartitions in interface javax.batch.api.partition.PartitionPlanpublic void setPartitionsOverride(boolean override)
setPartitionsOverride in interface javax.batch.api.partition.PartitionPlanpublic boolean getPartitionsOverride()
getPartitionsOverride in interface javax.batch.api.partition.PartitionPlanpublic void setThreads(int count)
setThreads in interface javax.batch.api.partition.PartitionPlanpublic void setPartitionProperties(java.util.Properties[] props)
setPartitionProperties in interface javax.batch.api.partition.PartitionPlan