Search in sources :

Example 1 with CreateSnapshotDiskParameters

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

the class CreateSnapshotForVmCommand method createSnapshotsForDisks.

private void createSnapshotsForDisks() {
    CreateSnapshotDiskParameters parameters = new CreateSnapshotDiskParameters();
    parameters.setDiskIdsToIgnoreInChecks(getParameters().getDiskIdsToIgnoreInChecks());
    parameters.setDiskToImageIds(getParameters().getDiskToImageIds());
    parameters.setNewActiveSnapshotId(newActiveSnapshotId);
    parameters.setSnapshotType(getParameters().getSnapshotType());
    parameters.setDiskIds(getParameters().getDiskIds());
    parameters.setEndProcedure(ActionParametersBase.EndProcedure.PARENT_MANAGED);
    parameters.setVmId(getVmId());
    parameters.setSessionId(getParameters().getSessionId());
    parameters.setParentCommand(getActionType());
    parameters.setParentParameters(getParameters());
    parameters.setEntityInfo(getParameters().getEntityInfo());
    runInternalAction(ActionType.CreateSnapshotDisk, parameters, ExecutionHandler.createDefaultContextForTasks(getContext(), getLock()));
}
Also used : CreateSnapshotDiskParameters(org.ovirt.engine.core.common.action.CreateSnapshotDiskParameters)

Aggregations

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