Arik Hadas has posted comments on this change. Change subject: core: cleanup in EventVmStatsRefresher (2) ......................................................................
Patch Set 3: (2 comments) https://gerrit.ovirt.org/#/c/42466/3/backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/vdsbroker/VdsBrokerObjectsBuilder.java File backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/vdsbroker/VdsBrokerObjectsBuilder.java: Line 2188: } Line 2189: Line 2190: /** Line 2191: * Build VmDynamic from event we get from VDSM upon status change Line 2192: * @param vmDynamic - base dynamic data, values which are not included in the > i would rename to baseVmDynamic, maybe also note it is not modified that's the initial name it had Done Line 2193: * events will be taken from it. Line 2194: * @param xmlRpcStruct - map from VDSM Line 2195: * @return cloned VmDynamic with values received from event Line 2196: */ Line 2221: Line 2222: return clonedVmDynamic; Line 2223: } Line 2224: Line 2225: public static Double getNotifyTimeFromVmStatusEvent(Map<String, Object> xmlRpcStruct) { > this is not just get because it removes from the map, so better rename to r Done Line 2226: Object notifyTime = xmlRpcStruct.remove(VdsProperties.notify_time); Line 2227: if (Long.class.isInstance(notifyTime)) { Line 2228: return ((Long) notifyTime).doubleValue(); Line 2229: } -- To view, visit https://gerrit.ovirt.org/42466 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I1f3cc490ad7c69877d97e8c01428c914bb81472f Gerrit-PatchSet: 3 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Arik Hadas <[email protected]> Gerrit-Reviewer: Arik Hadas <[email protected]> Gerrit-Reviewer: Barak Azulay <[email protected]> Gerrit-Reviewer: Jenkins CI Gerrit-Reviewer: Michal Skrivanek <[email protected]> Gerrit-Reviewer: Omer Frenkel <[email protected]> Gerrit-Reviewer: Oved Ourfali <[email protected]> Gerrit-Reviewer: Piotr Kliczewski <[email protected]> Gerrit-Reviewer: [email protected] Gerrit-HasComments: Yes _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
