@Override protected void build(VmBase source, VmBase destination) { destination.setMigrationSupport(source.getMigrationSupport()); destination.setMigrationDowntime(source.getMigrationDowntime()); destination.setMigrationPolicyId(source.getMigrationPolicyId()); } }
/** * Verifies {@link org.ovirt.engine.ui.uicommonweb.builders.vm.MigrationOptionsUnitToVmBaseBuilder} */ protected void verifyBuiltMigrationOptions(VmBase vm) { assertEquals(MIGRATION_SUPPORT, vm.getMigrationSupport()); assertEquals(MIGRATION_DOWNTIME, vm.getMigrationDowntime()); }
if (vmBase.getMigrationSupport() != null) { _writer.writeElement(MIGRATION_SUPPORT, String.valueOf(vmBase.getMigrationSupport().getValue()));
if (supportedModes.contains(vmBase.getMigrationSupport())) { maybeSetSelectedItem(getModel().getMigrationMode(), vmBase.getMigrationSupport());
private static VmStatic doMapVmBaseHwPartToVmStatic(VmBase entity, VmStatic staticVm, Version version) { staticVm.setMemSizeMb(entity.getMemSizeMb()); staticVm.setMaxMemorySizeMb(entity.getMaxMemorySizeMb()); staticVm.setAutoStartup(entity.isAutoStartup()); staticVm.setSmartcardEnabled(entity.isSmartcardEnabled()); staticVm.setDefaultBootSequence(entity.getDefaultBootSequence()); staticVm.setDefaultDisplayType(entity.getDefaultDisplayType()); staticVm.setNumOfSockets(entity.getNumOfSockets()); staticVm.setCpuPerSocket(entity.getCpuPerSocket()); staticVm.setThreadsPerCpu(entity.getThreadsPerCpu()); staticVm.setNumOfMonitors(entity.getNumOfMonitors()); staticVm.setSingleQxlPci(entity.getSingleQxlPci()); staticVm.setPriority(entity.getPriority()); staticVm.setUsbPolicy(entity.getUsbPolicy()); staticVm.setTunnelMigration(entity.getTunnelMigration()); staticVm.setMigrationSupport(entity.getMigrationSupport()); staticVm.setMigrationDowntime(entity.getMigrationDowntime()); staticVm.setDedicatedVmForVdsList(entity.getDedicatedVmForVdsList()); staticVm.setMinAllocatedMem(entity.getMinAllocatedMem()); staticVm.setNumOfIoThreads(entity.getNumOfIoThreads()); return staticVm; }
model.setPlacementPolicy(new VmPlacementPolicy()); VmAffinity vmAffinity = map(entity.getMigrationSupport(), null); if (vmAffinity != null) { model.getPlacementPolicy().setAffinity(vmAffinity);
.addValue("kernel_params", entity.getKernelParams()) .addValue("quota_id", entity.getQuotaId()) .addValue("migration_support", entity.getMigrationSupport().getValue()) .addValue("dedicated_vm_for_vds", entity.getDedicatedVmForVdsList().isEmpty() ? null : StringUtils.join(entity.getDedicatedVmForVdsList(), BaseDao.SEPARATOR))
vmBase.isRunAndPause(), vmBase.getCreatedByUserId(), vmBase.getMigrationSupport(), vmBase.isAllowConsoleReconnect(), vmBase.getDedicatedVmForVdsList(),