public Map<GraphicsType, GraphicsInfo> getGraphicsInfos() { return vmDynamic.getGraphicsInfos(); }
&& exitReason == other.exitReason && Objects.equals(emulatedMachine, other.emulatedMachine) && Objects.equals(graphicsInfos, other.getGraphicsInfos()) && Objects.equals(guestOsTimezoneName, other.guestOsTimezoneName) && guestOsTimezoneOffset == other.guestOsTimezoneOffset
private static void setGraphicsToEntity(ResultSet rs, VmDynamic entity) throws SQLException { GraphicsInfo graphicsInfo = new GraphicsInfo(); graphicsInfo.setIp(rs.getString("spice_ip")); graphicsInfo.setPort((Integer) rs.getObject("spice_port")); graphicsInfo.setTlsPort((Integer) rs.getObject("spice_tls_port")); if (graphicsInfo.getPort() != null || graphicsInfo.getTlsPort() != null) { entity.getGraphicsInfos().put(GraphicsType.SPICE, graphicsInfo); } graphicsInfo = new GraphicsInfo(); graphicsInfo.setIp(rs.getString("vnc_ip")); graphicsInfo.setPort((Integer) rs.getObject("vnc_port")); if (graphicsInfo.getPort() != null) { entity.getGraphicsInfos().put(GraphicsType.VNC, graphicsInfo); } }
@Override protected org.ovirt.engine.core.common.businessentities.VM getInverse(VmStatic to) { VmStatistics statistics = new VmStatistics(); statistics.setCpuUser(10.0); statistics.setCpuSys(20.0); VmDynamic dynamic = new VmDynamic(); dynamic.setStatus(VMStatus.Up); dynamic.setBootSequence(to.getDefaultBootSequence()); dynamic.getGraphicsInfos().put(GraphicsType.SPICE, new GraphicsInfo()); org.ovirt.engine.core.common.businessentities.VM ret = new org.ovirt.engine.core.common.businessentities.VM(to, dynamic, statistics); ret.setUsageMemPercent(50); return ret; }
exitReason = template.getExitReason(); guestCpuCount = template.getGuestCpuCount(); graphicsInfos = new HashMap<>(template.getGraphicsInfos()); guestOsVersion = template.getGuestOsVersion(); guestOsDistribution = template.getGuestOsDistribution();
GraphicsInfo spice = vm.getGraphicsInfos().get(GraphicsType.SPICE); GraphicsInfo vnc = vm.getGraphicsInfos().get(GraphicsType.VNC); return createIdParameterMapper(vm.getId()) .addValue("app_list", vm.getAppList())
setLastWatchdogEvent(vm.getLastWatchdogEvent()); setGuestCpuCount(vm.getGuestCpuCount()); setGraphicsInfos(new HashMap<>(vm.getGraphicsInfos())); setGuestOsArch(vm.getGuestOsArch()); setGuestOsCodename(vm.getGuestOsCodename());