@Component(value="restoreJobListener") public class RestoreJobExecutionListener extends Object implements org.springframework.batch.core.JobExecutionListener
| Constructor and Description |
|---|
RestoreJobExecutionListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterJob(org.springframework.batch.core.JobExecution jobExecution) |
void |
beforeJob(org.springframework.batch.core.JobExecution jobExecution) |
protected Date |
getExpirationDate(Date endDate,
int daysToExpire)
Calculates the restore expiration date based on the restoration
end date and the number of days before retirement
|
void |
init(ExecutionListenerConfig config,
int daysToExpire) |
void |
setBridgeConfig(BridgeConfiguration bridgeConfig) |
void |
setNotificationManager(org.duracloud.common.notification.NotificationManager notificationManager) |
void |
setRestorationRepo(RestoreRepo restoreRepo) |
void |
setSnapshotTaskClientHelper(SnapshotTaskClientHelper snapshotTaskClientHelper) |
public void setNotificationManager(org.duracloud.common.notification.NotificationManager notificationManager)
notificationManager - the notificationManager to setpublic void setRestorationRepo(RestoreRepo restoreRepo)
restoreRepo - the restoreRepo to setpublic void setSnapshotTaskClientHelper(SnapshotTaskClientHelper snapshotTaskClientHelper)
snapshotTaskClientHelper - the snapshotTaskClientHelper to setpublic void setBridgeConfig(BridgeConfiguration bridgeConfig)
bridgeConfig - the bridgeConfig to setpublic void init(ExecutionListenerConfig config, int daysToExpire)
@Transactional public void beforeJob(org.springframework.batch.core.JobExecution jobExecution)
beforeJob in interface org.springframework.batch.core.JobExecutionListener@Transactional public void afterJob(org.springframework.batch.core.JobExecution jobExecution)
afterJob in interface org.springframework.batch.core.JobExecutionListenerprotected Date getExpirationDate(Date endDate, int daysToExpire)
endDate - date on which the restoration completeddaysToExpire - number of days the restored content should stay in place
before it is retiredCopyright © 2014–2018 DuraSpace. All rights reserved.