use of org.ovirt.engine.core.common.vdscommands.SyncImageGroupDataVDSCommandParameters in project ovirt-engine by oVirt.
the class SyncImageGroupDataCommand method executeCommand.
@Override
protected void executeCommand() {
getParameters().setEntityInfo(new EntityInfo(VdcObjectType.Disk, getParameters().getImageGroup()));
Guid taskId = persistAsyncTaskPlaceHolder(getParameters().getParentCommand());
VDSReturnValue vdsReturnValue = runVdsCommand(VDSCommandType.SyncImageGroupData, new SyncImageGroupDataVDSCommandParameters(getParameters().getStoragePoolId(), getParameters().getStorageDomainId(), getParameters().getImageGroup(), getParameters().getDstStorageDomain(), SyncImageGroupDataVDSCommandParameters.SYNC_TYPE_INTERNAL));
if (vdsReturnValue.getSucceeded()) {
getParameters().setVdsmTaskIds(new ArrayList<>());
getParameters().getVdsmTaskIds().add(createTask(taskId, vdsReturnValue.getCreationInfo(), getParameters().getParentCommand(), VdcObjectType.Storage, getParameters().getStorageDomainId()));
getReturnValue().getVdsmTaskIdList().add(getParameters().getVdsmTaskIds().get(0));
}
setSucceeded(true);
}
Aggregations