Interface Step
- All Known Subinterfaces:
StoppableStep
- All Known Implementing Classes:
AbstractStep, ChunkOrientedStep, FlowStep, JobStep, PartitionStep, RemoteStep, TaskletStep
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe key to use when retrieving the batch step type. -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(StepExecution stepExecution) Process the step and assign progress and status meta information to theStepExecutionprovided.default StringgetName()The name of the step.default intdefault boolean
-
Field Details
-
STEP_TYPE_KEY
-
-
Method Details
-
getName
The name of the step. This is used to distinguish between different steps and must be unique within a job. If not explicitly set, the name will default to the fully qualified class name.- Returns:
- the name of the step (never
null)
-
isAllowStartIfComplete
default boolean isAllowStartIfComplete()- Returns:
trueif a step that is already marked as complete can be started again. Defaults tofalse.
-
getStartLimit
default int getStartLimit()- Returns:
- the number of times a step can be (re)started for the same job instance.
Defaults to
Integer.MAX_VALUE
-
execute
Process the step and assign progress and status meta information to theStepExecutionprovided. TheStepis responsible for setting the meta information and also saving it, if required by the implementation.
It is not safe to reuse an instance ofStepto process multiple concurrent executions.- Parameters:
stepExecution- an entity representing the step to be executed.- Throws:
JobInterruptedException- if the step is interrupted externally.
-