public interface RestoreTaskApi
Modifier and Type | Method and Description |
---|---|
Optional<RestoreTask> |
getRestoreTask(VdcUuid vdcUuid,
RestoreTaskUid restoreTaskUid)
Retrieves a restore task by UID.
|
Stream<RestoreTask> |
listRestoreTasks(VdcUuid vdcUuid,
ListRestoreTaskFilters filters)
Lists restore tasks with optional filters.
|
default RestoreTask |
waitForTask(RestoreTask restoreTask,
Duration pollInterval,
Duration timeout)
Polls for task for completion and returns the completed task when it is
finished or cancelled.
|
Optional<RestoreTask> getRestoreTask(VdcUuid vdcUuid, RestoreTaskUid restoreTaskUid)
vdcUuid
- VdcUuid
restoreTaskUid
- RestoreTaskUid
Optional
of RestoreTask
Stream<RestoreTask> listRestoreTasks(VdcUuid vdcUuid, ListRestoreTaskFilters filters)
Running Restore Tasks are always returned. The newest completed Restore Tasks are returned.
vdcUuid
- VdcUuid
filters
- ListRestoreTaskFilters
Stream
of RestoreTask
default RestoreTask waitForTask(RestoreTask restoreTask, Duration pollInterval, Duration timeout) throws TimeoutException, InterruptedException
restoreTask
- RestoreTask
pollInterval
- Duration
interval to polltimeout
- Duration
timeout periodRestoreTask
that is either finished or cancelledTimeoutException
- if the wait times outInterruptedException
- if the thread is interrupted while waitingCopyright © 2023 iland Internet Solutions, Corp. All rights reserved.