|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.batch.core.listener.CompositeExecutionJobListener
public class CompositeExecutionJobListener
Constructor Summary | |
---|---|
CompositeExecutionJobListener()
|
Method Summary | |
---|---|
void |
afterJob(JobExecution jobExecution)
Callback after successful completion of a job. |
void |
beforeJob(JobExecution jobExecution)
Initialise the state of the listener with the JobExecution from
the current scope. |
void |
onError(JobExecution jobExecution,
Throwable e)
Callback on job failure owing to the throwable provided. |
void |
onInterrupt(JobExecution jobExecution)
Callback when a job is interrupted or stopped manually. |
void |
register(JobExecutionListener jobExecutionListener)
Register additional listener. |
void |
setListeners(JobExecutionListener[] listeners)
Public setter for the listeners. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompositeExecutionJobListener()
Method Detail |
---|
public void setListeners(JobExecutionListener[] listeners)
listeners
- public void register(JobExecutionListener jobExecutionListener)
jobExecutionListener
- public void afterJob(JobExecution jobExecution)
JobExecutionListener
afterJob
in interface JobExecutionListener
jobExecution
- the current JobExecution
public void beforeJob(JobExecution jobExecution)
JobExecutionListener
JobExecution
from
the current scope.
beforeJob
in interface JobExecutionListener
jobExecution
- the current JobExecution
public void onError(JobExecution jobExecution, Throwable e)
JobExecutionListener
onError
in interface JobExecutionListener
jobExecution
- the current JobExecution
e
- the exception that caused the job to terminatepublic void onInterrupt(JobExecution jobExecution)
JobExecutionListener
onInterrupt
in interface JobExecutionListener
jobExecution
- the current JobExecution
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |