Class SnapshotJobExecutionListener
- java.lang.Object
-
- org.duracloud.snapshot.service.impl.SnapshotJobExecutionListener
-
- All Implemented Interfaces:
org.springframework.batch.core.JobExecutionListener
@Component("jobListener") public class SnapshotJobExecutionListener extends java.lang.Object implements org.springframework.batch.core.JobExecutionListener- Author:
- Erik Paulsson Date: 2/10/14
-
-
Constructor Summary
Constructors Constructor Description SnapshotJobExecutionListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterJob(org.springframework.batch.core.JobExecution jobExecution)voidbeforeJob(org.springframework.batch.core.JobExecution jobExecution)voidinit(ExecutionListenerConfig config)voidsetNotificationManager(org.duracloud.common.notification.NotificationManager notificationManager)voidsetSnapshotRepo(SnapshotRepo snapshotRepo)
-
-
-
Method Detail
-
setNotificationManager
public void setNotificationManager(org.duracloud.common.notification.NotificationManager notificationManager)
- Parameters:
notificationManager- the notificationManager to set
-
setSnapshotRepo
public void setSnapshotRepo(SnapshotRepo snapshotRepo)
- Parameters:
snapshotRepo- the snapshotRepo to set
-
init
public void init(ExecutionListenerConfig config)
-
beforeJob
@Transactional public void beforeJob(org.springframework.batch.core.JobExecution jobExecution)
- Specified by:
beforeJobin interfaceorg.springframework.batch.core.JobExecutionListener
-
afterJob
@Transactional public void afterJob(org.springframework.batch.core.JobExecution jobExecution)
- Specified by:
afterJobin interfaceorg.springframework.batch.core.JobExecutionListener
-
-