_writer.writeElement(IS_RUN_AND_PAUSE, String.valueOf(vmBase.isRunAndPause())); _writer.writeElement(AUTO_STARTUP, String.valueOf(vmBase.isAutoStartup())); _writer.writeElement(PRIORITY, String.valueOf(vmBase.getPriority()));
/** * Verifies {@link org.ovirt.engine.ui.uicommonweb.builders.vm.CommonUnitToVmBaseBuilder} */ protected void verifyBuiltCommonVm(VmBase vm) { verifyBuiltCoreVm(vm); assertTrue(vm.isStateless()); assertTrue(vm.isRunAndPause()); assertTrue(vm.isAutoStartup()); assertEquals(QUOTA_ID, vm.getQuotaId()); assertEquals(CPU_PROFILE_ID, vm.getCpuProfileId()); assertEquals(PRIORITY, vm.getPriority()); assertEquals(DESCRIPTION, vm.getDescription()); assertEquals(COMMENT, vm.getComment()); }
priorityUtil.initPriority(vmBase.getPriority(), new PriorityUtil.PriorityUpdatingCallbacks() { @Override public void beforeUpdates() {
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.getHighAvailability().setPriority(entity.getPriority());
.addValue("allow_console_reconnect", entity.isAllowConsoleReconnect()) .addValue("vm_type", entity.getVmType()) .addValue("priority", entity.getPriority()) .addValue("auto_startup", entity.isAutoStartup()) .addValue("is_stateless", entity.isStateless())
vmBase.getNiceLevel(), vmBase.getCpuShares(), vmBase.getPriority(), vmBase.isAutoStartup(), vmBase.isStateless(),