类 PartitionStep
- java.lang.Object
- org.springframework.batch.core.step.AbstractStep
- org.springframework.batch.core.partition.support.PartitionStep
- org.springframework.batch.core.jsr.step.PartitionStep
- 所有已实现的接口:
Step
,StepLocator
,org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanNameAware
,org.springframework.beans.factory.InitializingBean
public class PartitionStep extends PartitionStep implements StepLocator
An extension of thePartitionStep
that provides additional semantics required by JSR-352. Specifically, this implementation adds the required lifecycle calls to thePartitionReducer
if it is used.- 从以下版本开始:
- 3.0
- 作者:
- Michael Minella
字段概要
从接口继承的字段 org.springframework.batch.core.Step
STEP_TYPE_KEY
构造器概要
构造器 构造器 说明 PartitionStep()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected void
doExecute(StepExecution stepExecution)
Delegate execution to thePartitionHandler
provided.Step
getStep(java.lang.String stepName)
java.util.Collection<java.lang.String>
getStepNames()
void
setPartitionReducer(javax.batch.api.partition.PartitionReducer reducer)
从类继承的方法 org.springframework.batch.core.partition.support.PartitionStep
afterPropertiesSet, getPartitionHandler, getStepExecutionSplitter, setPartitionHandler, setStepExecutionAggregator, setStepExecutionSplitter
从类继承的方法 org.springframework.batch.core.step.AbstractStep
close, doExecutionRegistration, doExecutionRelease, execute, getCompositeListener, getJobRepository, getName, getStartLimit, isAllowStartIfComplete, open, registerStepExecutionListener, setAllowStartIfComplete, setBeanName, setJobRepository, setName, setStartLimit, setStepExecutionListeners, toString
构造器详细资料
PartitionStep
public PartitionStep()
方法详细资料
setPartitionReducer
public void setPartitionReducer(javax.batch.api.partition.PartitionReducer reducer)
doExecute
protected void doExecute(StepExecution stepExecution) throws java.lang.Exception
Delegate execution to thePartitionHandler
provided. TheStepExecution
passed in here becomes the parent or master execution for the partition, summarizing the status on exit of the logical grouping of work carried out by thePartitionHandler
. The individual step executions and their input parameters (throughExecutionContext
) for the partition elements are provided by theStepExecutionSplitter
.- 覆盖:
doExecute
在类中PartitionStep
- 参数:
stepExecution
- the master step execution for the partition- 抛出:
java.lang.Exception
- checked exception thrown by implementation- 另请参阅:
Step.execute(StepExecution)
getStepNames
public java.util.Collection<java.lang.String> getStepNames()
- 指定者:
getStepNames
在接口中StepLocator
getStep
public Step getStep(java.lang.String stepName) throws NoSuchStepException
- 指定者:
getStep
在接口中StepLocator
- 抛出:
NoSuchStepException