Step表示作业中的一个完整步骤,一个Job可以由一个或者多个Step组成。Step包含一个实际运行的批处理任务中的所有必须的信息.
一个Job可以拥有一到多个Step;一个Step可以有一到多个Step Execution(当一个Step执行失败,下次重新执行该任务的时候,会为该Step重新生成一个StepExecution);一个JobExecution可以有一到多个StepExecution(当一个Job由多个Step组成时,每个Step执行都会生成一个新的StepExecution,则一个JobExecution会拥有多个StepExecution)。
StepExecution
StepExecution是Step执行的句柄。一次Step执行可能成功也可能失败。
StepExecution对应的数据表是:BATCH_STEP_EXECUTION
StepExecution对应的Java类是 org.springframework.batch.core.StepExecution.