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(javax.batch.api.partition.PartitionPlan plan) |
Modifier and Type | Method and Description |
---|---|
java.util.Properties[] |
getPartitionProperties() |
int |
getPartitions() |
boolean |
getPartitionsOverride() |
int |
getThreads() |
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 java.util.Properties[] getPartitionProperties()
getPartitionProperties
in interface javax.batch.api.partition.PartitionPlan
public int getPartitions()
getPartitions
in interface javax.batch.api.partition.PartitionPlan
public int getThreads()
getThreads
in interface javax.batch.api.partition.PartitionPlan
public void setPartitions(int count)
setPartitions
in interface javax.batch.api.partition.PartitionPlan
public void setPartitionsOverride(boolean override)
setPartitionsOverride
in interface javax.batch.api.partition.PartitionPlan
public boolean getPartitionsOverride()
getPartitionsOverride
in interface javax.batch.api.partition.PartitionPlan
public void setThreads(int count)
setThreads
in interface javax.batch.api.partition.PartitionPlan
public void setPartitionProperties(java.util.Properties[] props)
setPartitionProperties
in interface javax.batch.api.partition.PartitionPlan