Roy Golan has posted comments on this change.

Change subject: core: cleanup VdsManager dispose
......................................................................


Patch Set 1:

(1 comment)

http://gerrit.ovirt.org/#/c/32757/1/backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/VdsManager.java
File 
backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/VdsManager.java:

Line 717:     public void dispose() {
Line 718:         log.info("vdsManager::disposing");
Line 719:         SchedulerUtilQuartzImpl.getInstance().deleteJob(onTimerJobId);
Line 720:         XmlRpcUtils.shutDownConnection(_vdsProxy.getHttpClient());
Line 721:         if (JsonRpcVdsServer.class.isInstance(_vdsProxy)) {
> Closeable looks like good idea when you have known life cycle. In case of t
and about the lifecycle, yes you defintely know when are you closing it, at 
dispose().

close impl is the responsibiliy of each VdsServer impl.

that way you as a maintainer don't have to change VdsManager and I don't have 
to think about VdsServer
Line 722:             ((JsonRpcVdsServer) _vdsProxy).close();
Line 723:         }
Line 724:     }
Line 725: 


-- 
To view, visit http://gerrit.ovirt.org/32757
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I204a60f20a19e79a431c9cb463073d160a5862a4
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Piotr Kliczewski <[email protected]>
Gerrit-Reviewer: Oved Ourfali <[email protected]>
Gerrit-Reviewer: Piotr Kliczewski <[email protected]>
Gerrit-Reviewer: Roy Golan <[email protected]>
Gerrit-Reviewer: [email protected]
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to