use of org.ovirt.engine.core.common.action.AddDiskParameters in project ovirt-engine by oVirt.
the class ImportVmFromExternalProviderCommand method buildAddDiskParameters.
protected AddDiskParameters buildAddDiskParameters(DiskImage image) {
AddDiskParameters diskParameters = new AddDiskParameters(image.getDiskVmElementForVm(getVmId()), image);
diskParameters.setStorageDomainId(getStorageDomainId());
diskParameters.setParentCommand(getActionType());
diskParameters.setParentParameters(getParameters());
diskParameters.setShouldRemainIllegalOnFailedExecution(true);
diskParameters.setStorageDomainId(getParameters().getDestDomainId());
diskParameters.setEndProcedure(EndProcedure.COMMAND_MANAGED);
return diskParameters;
}
use of org.ovirt.engine.core.common.action.AddDiskParameters in project ovirt-engine by oVirt.
the class HibernateVmCommand method buildAddDiskParameters.
private AddDiskParameters buildAddDiskParameters(DiskImage disk) {
AddDiskParameters parameters = new AddDiskParameters(disk);
parameters.setStorageDomainId(getStorageDomainId());
parameters.setParentCommand(getActionType());
parameters.setParentParameters(getParameters());
parameters.setShouldBeLogged(false);
return parameters;
}
Aggregations