Liran Zelkha has posted comments on this change. Change subject: core: VdsManager - cleanup ......................................................................
Patch Set 8: (2 comments) http://gerrit.ovirt.org/#/c/27374/8/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 68: Line 69: public class VdsManager { Line 70: private static Log log = LogFactory.getLog(VdsManager.class); Line 71: private static Map<Guid, String> recoveringJobIdMap = new ConcurrentHashMap<Guid, String>(); Line 72: private final int _numberRefreshesBeforeSave = Config.<Integer> getValue(ConfigValues.NumberVmRefreshesBeforeSave); > I'd also use this opportunity to remove the "_" and the mXXX and make the n Since the IoC is merged - why not inject the Config? Line 73: private final Object _lockObj = new Object(); Line 74: private final AtomicInteger mFailedToRunVmAttempts; Line 75: private final AtomicInteger mUnrespondedAttempts; Line 76: private final AtomicBoolean sshSoftFencingExecuted; http://gerrit.ovirt.org/#/c/27374/8/backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/jsonrpc/TransportFactory.java File backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/jsonrpc/TransportFactory.java: Line 34: IVdsServer vdsServer = null; Line 35: // Get the values of the timeouts: Line 36: int clientTimeOut = Config.<Integer> getValue(ConfigValues.vdsTimeout) * 1000; Line 37: int connectionTimeOut = Config.<Integer> getValue(ConfigValues.vdsConnectionTimeout) * 1000; Line 38: int clientRetries = Config.<Integer> getValue(ConfigValues.vdsRetries); I disagree - Config values should be injected by IoC Line 39: if (VdsProtocol.STOMP == vdsProtocol) { Line 40: vdsServer = new JsonRpcVdsServer(JsonRpcUtils.createStompClient(hostname, Line 41: port, connectionTimeOut, clientTimeOut, clientRetries, Line 42: Config.<Boolean> getValue(ConfigValues.EncryptHostCommunication))); -- To view, visit http://gerrit.ovirt.org/27374 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ib4062bc376d22253b045ad022c67f3f10da0b100 Gerrit-PatchSet: 8 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Roy Golan <rgo...@redhat.com> Gerrit-Reviewer: Liran Zelkha <lzel...@redhat.com> Gerrit-Reviewer: Michal Skrivanek <michal.skriva...@redhat.com> Gerrit-Reviewer: Omer Frenkel <ofren...@redhat.com> Gerrit-Reviewer: Oved Ourfali <oourf...@redhat.com> Gerrit-Reviewer: Piotr Kliczewski <piotr.kliczew...@gmail.com> Gerrit-Reviewer: Roy Golan <rgo...@redhat.com> Gerrit-Reviewer: Yair Zaslavsky <yzasl...@redhat.com> Gerrit-Reviewer: automat...@ovirt.org Gerrit-Reviewer: oVirt Jenkins CI Server Gerrit-HasComments: Yes _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches