Search in sources :

Example 16 with AddDiskParameters

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;
}
Also used : AddDiskParameters(org.ovirt.engine.core.common.action.AddDiskParameters)

Example 17 with AddDiskParameters

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;
}
Also used : AddDiskParameters(org.ovirt.engine.core.common.action.AddDiskParameters)

Aggregations

AddDiskParameters (org.ovirt.engine.core.common.action.AddDiskParameters)17 DiskImage (org.ovirt.engine.core.common.businessentities.storage.DiskImage)6 Guid (org.ovirt.engine.core.compat.Guid)6 DiskVmElement (org.ovirt.engine.core.common.businessentities.storage.DiskVmElement)3 ArrayList (java.util.ArrayList)2 Disk (org.ovirt.engine.api.model.Disk)1 QuotaConsumptionParameter (org.ovirt.engine.core.bll.quota.QuotaConsumptionParameter)1 QuotaStorageConsumptionParameter (org.ovirt.engine.core.bll.quota.QuotaStorageConsumptionParameter)1 ActionReturnValue (org.ovirt.engine.core.common.action.ActionReturnValue)1 RegisterDiskParameters (org.ovirt.engine.core.common.action.RegisterDiskParameters)1 TransferDiskImageParameters (org.ovirt.engine.core.common.action.TransferDiskImageParameters)1 StorageDomain (org.ovirt.engine.core.common.businessentities.StorageDomain)1 CinderDisk (org.ovirt.engine.core.common.businessentities.storage.CinderDisk)1 Disk (org.ovirt.engine.core.common.businessentities.storage.Disk)1 ImageStatus (org.ovirt.engine.core.common.businessentities.storage.ImageStatus)1 GetUnregisteredDiskQueryParameters (org.ovirt.engine.core.common.queries.GetUnregisteredDiskQueryParameters)1 IdQueryParameters (org.ovirt.engine.core.common.queries.IdQueryParameters)1 IFrontendActionAsyncCallback (org.ovirt.engine.ui.uicompat.IFrontendActionAsyncCallback)1