@Component public class RestoreManagerImpl extends Object implements RestoreManager
| Constructor and Description |
|---|
RestoreManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
extractAccountId(String host) |
void |
finalizeRestores() |
Restoration |
get(String restorationId) |
Restoration |
getBySnapshotId(String snapshotId) |
Restoration |
getRestoration(String restorationId) |
void |
init(RestoreManagerConfig config,
SnapshotJobManager jobManager) |
Restoration |
restoreCompleted(String restorationId) |
Restoration |
restoreSnapshot(String snapshotId,
DuracloudEndPointConfig destination,
String userEmail) |
void |
setBridgeConfig(BridgeConfiguration bridgeConfig) |
void |
setNotificationManager(org.duracloud.common.notification.NotificationManager notificationManager) |
void |
setRestoreRepo(RestoreRepo restoreRepo) |
void |
setSnapshotRepo(SnapshotRepo snapshotRepo) |
void |
setStoreClientHelper(StoreClientHelper storeClientHelper) |
Restoration |
transitionRestoreStatus(String restorationId,
org.duracloud.snapshot.dto.RestoreStatus status,
String message) |
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 Restoration getRestoration(String restorationId) throws RestorationNotFoundException
restorationId - RestorationNotFoundExceptionpublic 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 RestoreManagerCopyright © 2014–2015 DuraSpace. All rights reserved.