public interface RestoreManager
| Modifier and Type | Method and Description |
|---|---|
void |
cancelRestore(String restoreId)
Cancels a restore.
|
void |
finalizeRestores()
Look for restorations which have expired, and perform final cleanup actions
|
Restoration |
get(String restorationId) |
Restoration |
getBySnapshotId(String snapshotId)
Retrieves a restoration based on the ID of the snapshot being restored
|
void |
init(RestoreManagerConfig config,
SnapshotJobManager jobManager) |
Snapshot |
requestRestoreSnapshot(String snapshotId,
DuracloudEndPointConfig destination,
String userEmail)
Sends an email request to duracloud admin to restore a space.
|
Restoration |
restartRestore(String restoreId)
Restarts a restore.
|
Restoration |
restoreCompleted(String restorationId)
Called by the process responsible for performing the restoration from
DPN to Bridge Storage upon completion of the transfer.
|
Restoration |
restoreSnapshot(String snapshotId,
DuracloudEndPointConfig destination,
String userEmail)
Initiates the restoration of a snapshot.
|
Restoration |
transitionRestoreStatus(String restorationId,
org.duracloud.snapshot.dto.RestoreStatus status,
String message)
Transition the workflow status of the restore activity to a new status
|
void init(RestoreManagerConfig config, SnapshotJobManager jobManager)
config - jobManager - Restoration restoreSnapshot(String snapshotId, DuracloudEndPointConfig destination, String userEmail) throws SnapshotNotFoundException, SnapshotInProcessException, SnapshotException
snapshotId - destination - userEmail - SnapshotNotFoundExceptionSnapshotInProcessExceptionSnapshotExceptionSnapshot requestRestoreSnapshot(String snapshotId, DuracloudEndPointConfig destination, String userEmail) throws SnapshotException
snapshotId - destination - The destination where the restore should occur.userEmail - email to notify when restore starts and ends.SnapshotNotFoundExceptionSnapshotExceptionRestoration restoreCompleted(String restorationId) throws SnapshotNotFoundException, SnapshotInProcessException, NoRestorationInProcessException, SnapshotException
restorationId - SnapshotNotFoundExceptionSnapshotInProcessExceptionNoRestorationInProcessExceptionSnapshotExceptionRestoration get(String restorationId) throws RestorationNotFoundException
restorationId - RestorationNotFoundExceptionRestoration transitionRestoreStatus(String restorationId, org.duracloud.snapshot.dto.RestoreStatus status, String message) throws InvalidStateTransitionException, RestorationNotFoundException
restorationId - status - message - InvalidStateTransitionExceptionRestorationNotFoundExceptionRestoration getBySnapshotId(String snapshotId) throws RestorationNotFoundException
snapshotId - RestorationNotFoundExceptionvoid finalizeRestores()
void cancelRestore(String restoreId) throws SnapshotException
restoreId - SnapshotExceptionRestoration restartRestore(String restoreId) throws SnapshotException
restoreId - SnapshotExceptionCopyright © 2014–2017 DuraSpace. All rights reserved.