Search in sources :

Example 16 with ImagesContainterParametersBase

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

the class RemoveSnapshotCommand method buildRemoveCinderSnapshotDiskParameters.

private ImagesContainterParametersBase buildRemoveCinderSnapshotDiskParameters(CinderDisk cinderDisk) {
    ImagesContainterParametersBase removeCinderSnapshotParams = new ImagesContainterParametersBase(cinderDisk.getImageId());
    removeCinderSnapshotParams.setDestinationImageId(cinderDisk.getImageId());
    removeCinderSnapshotParams.setStorageDomainId(cinderDisk.getStorageIds().get(0));
    removeCinderSnapshotParams.setParentCommand(getActionType());
    removeCinderSnapshotParams.setParentParameters(getParameters());
    return removeCinderSnapshotParams;
}
Also used : ImagesContainterParametersBase(org.ovirt.engine.core.common.action.ImagesContainterParametersBase)

Aggregations

ImagesContainterParametersBase (org.ovirt.engine.core.common.action.ImagesContainterParametersBase)16 DiskImage (org.ovirt.engine.core.common.businessentities.storage.DiskImage)8 Guid (org.ovirt.engine.core.compat.Guid)8 ActionReturnValue (org.ovirt.engine.core.common.action.ActionReturnValue)7 CinderDisk (org.ovirt.engine.core.common.businessentities.storage.CinderDisk)7 ArrayList (java.util.ArrayList)3 HashMap (java.util.HashMap)2 Snapshot (org.ovirt.engine.core.common.businessentities.Snapshot)2 ImageStatus (org.ovirt.engine.core.common.businessentities.storage.ImageStatus)2 Collection (java.util.Collection)1 List (java.util.List)1 ExecutionException (java.util.concurrent.ExecutionException)1 BaseImagesCommand (org.ovirt.engine.core.bll.storage.disk.image.BaseImagesCommand)1 ActionParametersBase (org.ovirt.engine.core.common.action.ActionParametersBase)1 ActionType (org.ovirt.engine.core.common.action.ActionType)1 RemoveCinderDiskParameters (org.ovirt.engine.core.common.action.RemoveCinderDiskParameters)1 RemoveCinderDiskVolumeParameters (org.ovirt.engine.core.common.action.RemoveCinderDiskVolumeParameters)1 RestoreFromSnapshotParameters (org.ovirt.engine.core.common.action.RestoreFromSnapshotParameters)1 VmDeviceId (org.ovirt.engine.core.common.businessentities.VmDeviceId)1 ImageStorageDomainMapId (org.ovirt.engine.core.common.businessentities.storage.ImageStorageDomainMapId)1