Package se.ikama.bauta.batch.listeners
Class MailNotificationJobListener
- java.lang.Object
-
- se.ikama.bauta.batch.listeners.MailNotificationJobListener
-
- All Implemented Interfaces:
org.springframework.batch.core.JobExecutionListener,org.springframework.batch.core.StepExecutionListener,org.springframework.batch.core.StepListener
public class MailNotificationJobListener extends java.lang.Object implements org.springframework.batch.core.JobExecutionListener, org.springframework.batch.core.StepExecutionListenerSends email notifications when jobs finish.- Author:
- arbinmat
-
-
Constructor Summary
Constructors Constructor Description MailNotificationJobListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterJob(org.springframework.batch.core.JobExecution jobExecution)org.springframework.batch.core.ExitStatusafterStep(org.springframework.batch.core.StepExecution stepExecution)voidbeforeJob(org.springframework.batch.core.JobExecution jobExecution)voidbeforeStep(org.springframework.batch.core.StepExecution stepExecution)voidsendMail(org.springframework.batch.core.JobExecution jobExecution, org.springframework.batch.core.ExitStatus exitStatus)
-
-
-
Method Detail
-
afterJob
public void afterJob(org.springframework.batch.core.JobExecution jobExecution)
- Specified by:
afterJobin interfaceorg.springframework.batch.core.JobExecutionListener
-
afterStep
public org.springframework.batch.core.ExitStatus afterStep(org.springframework.batch.core.StepExecution stepExecution)
- Specified by:
afterStepin interfaceorg.springframework.batch.core.StepExecutionListener
-
beforeJob
public void beforeJob(org.springframework.batch.core.JobExecution jobExecution)
- Specified by:
beforeJobin interfaceorg.springframework.batch.core.JobExecutionListener
-
beforeStep
public void beforeStep(org.springframework.batch.core.StepExecution stepExecution)
- Specified by:
beforeStepin interfaceorg.springframework.batch.core.StepExecutionListener
-
sendMail
public void sendMail(org.springframework.batch.core.JobExecution jobExecution, org.springframework.batch.core.ExitStatus exitStatus)
-
-