Package org.duracloud.snapshot.service
Interface SnapshotManager
public interface SnapshotManager
- Author:
- Daniel Bernstein Date: Jul 30, 2014
-
Method Summary
Modifier and TypeMethodDescriptionaddAlternateSnapshotIds(Snapshot snapshot, List<String> alternateIds) Adds a list of snapshot alternate Id's to a snapshot.voidvoiddeleteSnapshot(String snapshotId) voidThis method runs through any snapshots with a status of CLEANING_UP and checks if the corresponding space is empty.transferError(String snapshotId, String errorDetails) Notifies the bridge that the snapshot transfer action failed to complete due to an error condition.transferToStorageComplete(String snapshotId) Notifies the bridge that the snapshot's transfer to storage is complete.updateHistory(Snapshot snapshot, String history) Updates a snapshot's history
-
Method Details
-
addContentItem
void addContentItem(Snapshot snapshot, String contentId, Map<String, String> props) throws SnapshotException- Parameters:
snapshot-contentId-props-- Throws:
SnapshotException
-
addAlternateSnapshotIds
Snapshot addAlternateSnapshotIds(Snapshot snapshot, List<String> alternateIds) throws AlternateIdAlreadyExistsException Adds a list of snapshot alternate Id's to a snapshot. To map Bag Id's to Duracloud Snapshot Id's- Parameters:
snapshot-alternateIds-- Returns:
- Throws:
AlternateIdAlreadyExistsException
-
transferToStorageComplete
Notifies the bridge that the snapshot's transfer to storage is complete. This call is initiated via the bridge REST API by the entity retrieving the snapshot from bridge storage.- Parameters:
snapshotId-- Throws:
SnapshotException
-
transferError
Notifies the bridge that the snapshot transfer action failed to complete due to an error condition. This call is initiated via the bridge REST API by the entity retrieving the snapshot from bridge storage.- Parameters:
snapshotId-errorDetails-- Returns:
- Throws:
SnapshotException
-
finalizeSnapshots
void finalizeSnapshots()This method runs through any snapshots with a status of CLEANING_UP and checks if the corresponding space is empty. If so, the state is updated to complete and notification is sent out to the user. -
updateHistory
Updates a snapshot's history- Parameters:
snapshot-history-- Returns:
- the altered snapshot
-
deleteSnapshot
-