Search in sources :

Example 1 with TargetDomainImageGroupVDSCommandParameters

use of org.ovirt.engine.core.common.vdscommands.TargetDomainImageGroupVDSCommandParameters in project ovirt-engine by oVirt.

the class CreateImagePlaceholderCommand method executeCommand.

@Override
protected void executeCommand() {
    getParameters().setEntityInfo(new EntityInfo(VdcObjectType.Disk, getParameters().getImageGroup()));
    Guid taskId = persistAsyncTaskPlaceHolder(getParameters().getParentCommand());
    VDSReturnValue vdsReturnValue = runVdsCommand(VDSCommandType.CloneImageGroupStructure, new TargetDomainImageGroupVDSCommandParameters(getParameters().getStoragePoolId(), getParameters().getStorageDomainId(), getParameters().getImageGroup(), getParameters().getDstStorageDomain()));
    if (vdsReturnValue.getSucceeded()) {
        getTaskIdList().add(createTask(taskId, vdsReturnValue.getCreationInfo(), getParameters().getParentCommand(), VdcObjectType.Storage, getParameters().getStorageDomainId()));
    }
    setSucceeded(true);
}
Also used : EntityInfo(org.ovirt.engine.core.common.asynctasks.EntityInfo) Guid(org.ovirt.engine.core.compat.Guid) TargetDomainImageGroupVDSCommandParameters(org.ovirt.engine.core.common.vdscommands.TargetDomainImageGroupVDSCommandParameters) VDSReturnValue(org.ovirt.engine.core.common.vdscommands.VDSReturnValue)

Aggregations

EntityInfo (org.ovirt.engine.core.common.asynctasks.EntityInfo)1 TargetDomainImageGroupVDSCommandParameters (org.ovirt.engine.core.common.vdscommands.TargetDomainImageGroupVDSCommandParameters)1 VDSReturnValue (org.ovirt.engine.core.common.vdscommands.VDSReturnValue)1 Guid (org.ovirt.engine.core.compat.Guid)1