Search in sources :

Example 1 with RestoreAllCinderSnapshotsParameters

use of org.ovirt.engine.core.common.action.RestoreAllCinderSnapshotsParameters in project ovirt-engine by oVirt.

the class RestoreAllSnapshotsCommand method buildCinderChildCommandParameters.

private RestoreAllCinderSnapshotsParameters buildCinderChildCommandParameters(List<CinderDisk> cinderDisksToRestore, List<CinderDisk> cinderDisksToRemove, List<CinderDisk> cinderVolumesToRemove, Guid removedSnapshotId) {
    RestoreAllCinderSnapshotsParameters restoreParams = new RestoreAllCinderSnapshotsParameters(getVmId(), cinderDisksToRestore, cinderDisksToRemove, cinderVolumesToRemove);
    restoreParams.setRemovedSnapshotId(removedSnapshotId);
    restoreParams.setSnapshot(getSnapshot());
    restoreParams.setParentHasTasks(!getReturnValue().getVdsmTaskIdList().isEmpty());
    restoreParams.setParentCommand(getActionType());
    restoreParams.setParentParameters(getParameters());
    restoreParams.setEndProcedure(EndProcedure.COMMAND_MANAGED);
    return withRootCommandInfo(restoreParams);
}
Also used : RestoreAllCinderSnapshotsParameters(org.ovirt.engine.core.common.action.RestoreAllCinderSnapshotsParameters)

Aggregations

RestoreAllCinderSnapshotsParameters (org.ovirt.engine.core.common.action.RestoreAllCinderSnapshotsParameters)1