Class SnapshotManagerImpl
java.lang.Object
org.duracloud.snapshot.service.impl.SnapshotManagerImpl
- All Implemented Interfaces:
SnapshotManager
- Author:
- Daniel Bernstein Date: Jul 31, 2014
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAlternateSnapshotIds(Snapshot snapshot, List<String> alternateIds) voidvoiddeleteSnapshot(String snapshotId) voidprotected voidsetBridgeConfig(BridgeConfiguration bridgeConfig) protected voidsetEventLog(EventLog eventLog) For testing purposes onlyprotected voidsetNotificationManager(org.duracloud.common.notification.NotificationManager notificationManager) For testing purposes onlyvoidsetSecondsBetweenCleanupFailureNotifications(long secondsBetweenCleanupFailureNotifications) protected voidsetSnapshotContentItemRepo(SnapshotContentItemRepo snapshotContentItemRepo) For testing purposes onlyprotected voidsetSnapshotRepo(SnapshotRepo snapshotRepo) For testing purposes onlyprotected voidsetSnapshotTaskClientHelper(SnapshotTaskClientHelper snapshotTaskClientHelper) For testing purposes onlyvoidsetStoreClientHelper(StoreClientHelper storeClientHelper) transferError(String snapshotId, String errorDetails) transferToStorageComplete(String snapshotId) updateHistory(Snapshot snapshot, String history)
-
Field Details
-
MAX_DAYS_IN_CLEANUP
public static final int MAX_DAYS_IN_CLEANUP- See Also:
-
METADATA_FILENAMES
-
-
Constructor Details
-
SnapshotManagerImpl
public SnapshotManagerImpl()
-
-
Method Details
-
setSnapshotContentItemRepo
For testing purposes only- Parameters:
snapshotContentItemRepo- the snapshotContentItemRepo to set
-
setSnapshotRepo
For testing purposes only- Parameters:
snapshotRepo- the snapshotRepo to set
-
setNotificationManager
protected void setNotificationManager(org.duracloud.common.notification.NotificationManager notificationManager) For testing purposes only- Parameters:
notificationManager- the notificationManager to set
-
setSnapshotTaskClientHelper
For testing purposes only- Parameters:
snapshotTaskClientHelper- the snapshotTaskClientHelper to set
-
setBridgeConfig
- Parameters:
bridgeConfig- the bridgeConfig to set
-
setEventLog
For testing purposes only- Parameters:
eventLog- the event log
-
addContentItem
@Transactional public void addContentItem(Snapshot snapshot, String contentId, Map<String, String> props) throws SnapshotException- Specified by:
addContentItemin interfaceSnapshotManager- Throws:
SnapshotException
-
addAlternateSnapshotIds
@Transactional public Snapshot addAlternateSnapshotIds(Snapshot snapshot, List<String> alternateIds) throws AlternateIdAlreadyExistsException - Specified by:
addAlternateSnapshotIdsin interfaceSnapshotManager- Throws:
AlternateIdAlreadyExistsException
-
transferToStorageComplete
@Transactional public Snapshot transferToStorageComplete(String snapshotId) throws SnapshotException - Specified by:
transferToStorageCompletein interfaceSnapshotManager- Throws:
SnapshotException
-
transferError
@Transactional public Snapshot transferError(String snapshotId, String errorDetails) throws SnapshotException - Specified by:
transferErrorin interfaceSnapshotManager- Throws:
SnapshotException
-
finalizeSnapshots
@Transactional public void finalizeSnapshots()- Specified by:
finalizeSnapshotsin interfaceSnapshotManager
-
updateHistory
- Specified by:
updateHistoryin interfaceSnapshotManager
-
setStoreClientHelper
- Parameters:
storeClientHelper- the storeClientHelper to set
-
deleteSnapshot
- Specified by:
deleteSnapshotin interfaceSnapshotManager
-
setSecondsBetweenCleanupFailureNotifications
public void setSecondsBetweenCleanupFailureNotifications(long secondsBetweenCleanupFailureNotifications) - Parameters:
secondsBetweenCleanupFailureNotifications- the secondsBetweenCleanupFailureNotifications to set
-