public class StepBuilder extends StepBuilderHelper<StepBuilder>
StepBuilderHelper.CommonStepProperties
logger, properties
Constructor and Description |
---|
StepBuilder(String name)
Initialize a step builder for a step with the given name.
|
Modifier and Type | Method and Description |
---|---|
<I,O> SimpleStepBuilder<I,O> |
chunk(CompletionPolicy completionPolicy)
Build a step that processes items in chunks with the completion policy provided.
|
<I,O> SimpleStepBuilder<I,O> |
chunk(int chunkSize)
Build a step that processes items in chunks with the size provided.
|
FlowStepBuilder |
flow(Flow flow)
Create a new step builder that will execute a flow.
|
JobStepBuilder |
job(Job job)
Create a new step builder that will execute a job.
|
PartitionStepBuilder |
partitioner(Step step)
Create a partition step builder for a remote (or local) step.
|
PartitionStepBuilder |
partitioner(String stepName,
Partitioner partitioner)
Create a partition step builder for a remote (or local) step.
|
TaskletStepBuilder |
tasklet(Tasklet tasklet)
Build a step with a custom tasklet, not necessarily item processing.
|
allowStartIfComplete, enhance, getJobRepository, getName, getTransactionManager, isAllowStartIfComplete, listener, listener, repository, startLimit, transactionManager
public StepBuilder(String name)
name
- the name of the steppublic TaskletStepBuilder tasklet(Tasklet tasklet)
tasklet
- a taskletTaskletStepBuilder
public <I,O> SimpleStepBuilder<I,O> chunk(int chunkSize)
SimpleStepBuilder.faultTolerant()
method on the builder. In most cases you will want to
parameterize your call to this method, to preserve the type safety of your readers and writers, e.g.
new StepBuilder("step1").<Order, Ledger> chunk(100).reader(new OrderReader()).writer(new LedgerWriter()) // ... etc.
I
- the type of item to be processed as inputO
- the type of item to be outputchunkSize
- the chunk size (commit interval)SimpleStepBuilder
public <I,O> SimpleStepBuilder<I,O> chunk(CompletionPolicy completionPolicy)
SimpleStepBuilder.faultTolerant()
method on the builder. In most cases you will
want to parameterize your call to this method, to preserve the type safety of your readers and writers, e.g.
new StepBuilder("step1").<Order, Ledger> chunk(100).reader(new OrderReader()).writer(new LedgerWriter()) // ... etc.
I
- the type of item to be processed as inputO
- the type of item to be output *completionPolicy
- the completion policy to use to control chunk processingSimpleStepBuilder
public PartitionStepBuilder partitioner(String stepName, Partitioner partitioner)
stepName
- the name of the remote or delegate steppartitioner
- a partitioner to be used to construct new step executionsPartitionStepBuilder
public PartitionStepBuilder partitioner(Step step)
step
- the step to execute in parallelpublic JobStepBuilder job(Job job)
job
- a job to executeJobStepBuilder
public FlowStepBuilder flow(Flow flow)
flow
- a flow to executeFlowStepBuilder
Copyright © 2014 Pivotal. All rights reserved.