use of org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo in project ovirt-engine by oVirt.
the class SyncImageGroupDataVDSCommand method executeIrsBrokerCommand.
@Override
protected void executeIrsBrokerCommand() {
P params = getParameters();
uuidReturn = getIrsProxy().syncImageData(params.getStoragePoolId().toString(), params.getStorageDomainId().toString(), params.getImageGroupId().toString(), params.getDstDomainId().toString(), params.getSyncType());
proceedProxyReturnValue();
Guid taskID = new Guid(uuidReturn.uuid);
getVDSReturnValue().setCreationInfo(new AsyncTaskCreationInfo(taskID, AsyncTaskType.syncImageData, params.getStoragePoolId()));
}
use of org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo in project ovirt-engine by oVirt.
the class DownloadImageVDSCommand method executeIrsBrokerCommand.
@Override
protected void executeIrsBrokerCommand() {
setReturnValue(Guid.Empty);
log.info("-- executeIrsBrokerCommand: calling 'downloadImage', parameters:");
log.info("++ dstSpUUID={}", getParameters().getStoragePoolId());
log.info("++ dstSdUUID={}", getParameters().getStorageDomainId());
log.info("++ dstImageGUID={}", getParameters().getImageGroupId());
log.info("++ dstVolUUID={}", getParameters().getImageId());
log.info("++ importLocation={}", getParameters().getDownloadInfo());
uuidReturn = getIrsProxy().downloadImage(LocationInfoHelper.prepareLocationInfoForVdsCommand(getParameters().getDownloadInfo()), getParameters().getStoragePoolId().toString(), getParameters().getStorageDomainId().toString(), getParameters().getImageGroupId().toString(), getParameters().getImageId().toString());
proceedProxyReturnValue();
getVDSReturnValue().setCreationInfo(new AsyncTaskCreationInfo(new Guid(uuidReturn.uuid), AsyncTaskType.downloadImage, getParameters().getStoragePoolId()));
}
use of org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo in project ovirt-engine by oVirt.
the class ExtendImageSizeVDSCommand method executeIrsBrokerCommand.
@Override
protected void executeIrsBrokerCommand() {
result = getIrsProxy().extendVolumeSize(getParameters().getStoragePoolId().toString(), getParameters().getStorageDomainId().toString(), getParameters().getImageGroupId().toString(), getParameters().getImageId().toString(), String.valueOf(getParameters().getNewSize()));
proceedProxyReturnValue();
getVDSReturnValue().setCreationInfo(new AsyncTaskCreationInfo(Guid.createGuidFromString(result.uuid), AsyncTaskType.extendImageSize, getParameters().getStoragePoolId()));
}
use of org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo in project ovirt-engine by oVirt.
the class FinalizeMergeVDSCommand method executeIrsBrokerCommand.
@Override
protected void executeIrsBrokerCommand() {
uuidReturn = getIrsProxy().finalizeMerge(getParameters().getStoragePoolId().toString(), SubchainInfoHelper.prepareSubchainInfoForVdsCommand(getParameters().getSubchainInfo()));
proceedProxyReturnValue();
Guid taskID = new Guid(uuidReturn.uuid);
getVDSReturnValue().setCreationInfo(new AsyncTaskCreationInfo(taskID, AsyncTaskType.finalizeMerge, getParameters().getStoragePoolId()));
}
use of org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo in project ovirt-engine by oVirt.
the class CloneImageGroupStructureVDSCommand method executeIrsBrokerCommand.
@Override
protected void executeIrsBrokerCommand() {
storageDomainHelper.checkNumberOfLVsForBlockDomain(getParameters().getDstDomainId());
P params = getParameters();
uuidReturn = getIrsProxy().cloneImageStructure(params.getStoragePoolId().toString(), params.getStorageDomainId().toString(), params.getImageGroupId().toString(), params.getDstDomainId().toString());
proceedProxyReturnValue();
Guid taskID = new Guid(uuidReturn.uuid);
getVDSReturnValue().setCreationInfo(new AsyncTaskCreationInfo(taskID, AsyncTaskType.cloneImageStructure, params.getStoragePoolId()));
}
Aggregations