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 Object
implements org.springframework.batch.core.JobExecutionListener
- Author:
- Erik Paulsson Date: 2/10/14
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterJob(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)
-
Constructor Details
-
SnapshotJobExecutionListener
public SnapshotJobExecutionListener()
-
-
Method Details
-
setNotificationManager
public void setNotificationManager(org.duracloud.common.notification.NotificationManager notificationManager) - Parameters:
notificationManager- the notificationManager to set
-
setSnapshotRepo
- Parameters:
snapshotRepo- the snapshotRepo to set
-
init
-
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
-