Hey Chip, This method used to be called from AgentManagerImpl, but it now uses the default constructor with Inject. So this method is no longer needed and I decided to remove it to avoid confusion. I dislike leaving constructor and methods around that are not used anymore as they tend to be unmaintained and become broken at some point.
Cheers, Hugo > -----Original Message----- > From: Chip Childers [mailto:chip.child...@sungard.com] > Sent: Thursday, April 04, 2013 5:01 PM > To: dev@cloudstack.apache.org > Subject: Re: [ACS41][Patch request] > f1259d50bdd6120174717f4cce6a45dc12b6645b > > On Thu, Apr 04, 2013 at 04:52:15PM +0200, Wido den Hollander wrote: > > Hi, > > > > Hugo and I were on IRC today and he found > > f1259d50bdd6120174717f4cce6a45dc12b6645b > > > > I also noticed this on 4.1 and this fix seems to resolve it. > > > > There is no Jira ticket I could find and since Hugo isn't online right > > now I'm requesting it this way. > > > > Or do we want a Jira ticket first? > > > > Wido > > > > I think we can cherry-pick over without one, but can you explain this part of > the diff? > > - > - public AgentMonitor(long msId, HostDao hostDao, VMInstanceDao > vmDao, DataCenterDao dcDao, HostPodDao podDao, AgentManagerImpl > agentMgr, AlertManager alertMgr, long pingTimeout) { > - super("AgentMonitor"); > - _msId = msId; > - _pingTimeout = pingTimeout; > - _hostDao = hostDao; > - _agentMgr = agentMgr; > - _stop = false; > - _vmDao = vmDao; > - _dcDao = dcDao; > - _podDao = podDao; > - _alertMgr = alertMgr; > - _pingMap = new ConcurrentHashMap<Long, Long>(10007); > - // try { > - // Connection conn = > Transaction.getStandaloneConnectionWithException(); > - // conn.setAutoCommit(true); > - // > conn.setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED > ); > - // _concierge = new ConnectionConcierge("AgentMonitor", conn, true); > - // } catch (SQLException e) { > - // throw new CloudRuntimeException("Unable to get a db connection", > e); > - // } > - > - } > - > > I'm not sure what this method did, but it's being removed.