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);
}
Aggregations