@Component public class RestoreManagerImpl extends Object implements RestoreManager
| Constructor and Description |
|---|
RestoreManagerImpl() |
public void setSnapshotRepo(SnapshotRepo snapshotRepo)
snapshotRepo - the snapshotRepo to setpublic void setNotificationManager(org.duracloud.common.notification.NotificationManager notificationManager)
notificationManager - the notificationManager to setpublic void setRestoreRepo(RestoreRepo restoreRepo)
restoreRepo - the restoreRepo to setpublic void setStoreClientHelper(StoreClientHelper storeClientHelper)
storeClientHelper - the storeClientHelper to setpublic void setBridgeConfig(BridgeConfiguration bridgeConfig)
bridgeConfig - the bridgeConfig to setpublic Restoration restoreSnapshot(String snapshotId, DuracloudEndPointConfig destination, String userEmail) throws SnapshotNotFoundException, SnapshotInProcessException, SnapshotException
restoreSnapshot in interface RestoreManagerSnapshotNotFoundExceptionSnapshotInProcessExceptionSnapshotExceptionpublic Snapshot requestRestoreSnapshot(String snapshotId, DuracloudEndPointConfig destination, String userEmail) throws SnapshotException
requestRestoreSnapshot in interface RestoreManagerSnapshotExceptionpublic Restoration getRestoration(String restorationId) throws RestorationNotFoundException
restorationId - of the restore objectRestorationNotFoundException - if the restoration is not foundpublic Restoration restoreCompleted(String restorationId) throws SnapshotNotFoundException, SnapshotInProcessException, NoRestorationInProcessException, SnapshotException
restoreCompleted in interface RestoreManagerSnapshotNotFoundExceptionSnapshotInProcessExceptionNoRestorationInProcessExceptionSnapshotExceptionpublic void init(RestoreManagerConfig config, SnapshotJobManager jobManager)
init in interface RestoreManagerpublic Restoration get(String restorationId) throws RestorationNotFoundException
get in interface RestoreManagerRestorationNotFoundExceptionpublic Restoration getBySnapshotId(String snapshotId) throws RestorationNotFoundException
getBySnapshotId in interface RestoreManagerRestorationNotFoundException@Transactional public Restoration transitionRestoreStatus(String restorationId, org.duracloud.snapshot.dto.RestoreStatus status, String message) throws InvalidStateTransitionException, RestorationNotFoundException
transitionRestoreStatus in interface RestoreManagerInvalidStateTransitionExceptionRestorationNotFoundException@Transactional public void finalizeRestores()
finalizeRestores in interface RestoreManager@Transactional public void cancelRestore(String restoreId) throws SnapshotException
cancelRestore in interface RestoreManagerSnapshotException@Transactional public Restoration restartRestore(String restoreId) throws SnapshotException
restartRestore in interface RestoreManagerSnapshotExceptionCopyright © 2014–2015 DuraSpace. All rights reserved.