Laszlo Hornyak has posted comments on this change.
Change subject: engine: watchdog - frontend
......................................................................
Patch Set 5: (2 inline comments)
>Adding watchdog data in vm general subtab
>Enabling watchdog fields according to supported >compatibility version (iirc
>Missing in add watchdog >canDoAction)
>Watchdog filtered events sub-tab for VM main tab (visible >when watchdog is
>enabled)
For me it looks like a reasonable request, but I can imagine this in a separate
patch. Einav, Doron, what do you think?
....................................................
File
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/ExistingVmModelBehavior.java
Line 82: public void OnSuccess(Object target, Object returnValue) {
Line 83: UnitVmModel model = (UnitVmModel) target;
Line 84: VdcQueryReturnValue val = (VdcQueryReturnValue)
returnValue;
Line 85: @SuppressWarnings("unchecked")
Line 86: Collection<VmWatchdog> watchdogs =
(Collection<VmWatchdog>) val.getReturnValue();
do not understand this, let's talk on IRC
Line 87: for(VmWatchdog watchdog: watchdogs) {
Line 88:
model.getWatchdogAction().setEntity(watchdog.getAction());
Line 89:
model.getWatchdogModel().setEntity(watchdog.getModel());
Line 90: }
....................................................
File
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/VmListModel.java
Line 2153:
VdcReturnValueBase retVal = result1.getReturnValue();
Line 2154: if (retVal !=
null && retVal.getSucceeded())
Line 2155: {
Line 2156:
vmListModel1.Cancel();
Line 2157: }
if model is null then we get an NPE on line 2134
Line 2158:
UpdateWatchdogParameters watchdogParameters = new UpdateWatchdogParameters();
Line 2159:
watchdogParameters.setVmId(getcurrentVm().getId());
Line 2160:
watchdogParameters.setAction((String) model.getWatchdogAction().getEntity());
Line 2161:
watchdogParameters.setModel((String) model.getWatchdogModel().getEntity());
--
To view, visit http://gerrit.ovirt.org/13059
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: Ie3f72fabf35d32a05a75652ced362c5bee32b8d7
Gerrit-PatchSet: 5
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Laszlo Hornyak <[email protected]>
Gerrit-Reviewer: Doron Fediuck <[email protected]>
Gerrit-Reviewer: Einav Cohen <[email protected]>
Gerrit-Reviewer: Gilad Chaplik <[email protected]>
Gerrit-Reviewer: Laszlo Hornyak <[email protected]>
Gerrit-Reviewer: Tomas Jelinek <[email protected]>
Gerrit-Reviewer: Vojtech Szocs <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches