类 JobExecutionListenerSupport
- java.lang.Object
- org.springframework.batch.core.listener.JobExecutionListenerSupport
- 所有已实现的接口:
JobExecutionListener
public class JobExecutionListenerSupport extends java.lang.Object implements JobExecutionListener
- 作者:
- Dave Syer
构造器概要
构造器 构造器 说明 JobExecutionListenerSupport()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
afterJob(JobExecution jobExecution)
Callback after completion of a job.void
beforeJob(JobExecution jobExecution)
Callback before a job executes.
构造器详细资料
JobExecutionListenerSupport
public JobExecutionListenerSupport()
方法详细资料
afterJob
public void afterJob(JobExecution jobExecution)
从接口复制的说明:JobExecutionListener
Callback after completion of a job. Called after both both successful and failed executions. To perform logic on a particular status, use "if (jobExecution.getStatus() == BatchStatus.X)".- 指定者:
afterJob
在接口中JobExecutionListener
- 参数:
jobExecution
- the currentJobExecution
beforeJob
public void beforeJob(JobExecution jobExecution)
从接口复制的说明:JobExecutionListener
Callback before a job executes.- 指定者:
beforeJob
在接口中JobExecutionListener
- 参数:
jobExecution
- the currentJobExecution