@Override public Map<ServerLocation, Endpoint> getEndpointMap() { return endpointManager.getEndpointMap(); }
/** * Returns a list of ServerLocation instances; one for each server we are currently connected to. */ public List<ServerLocation> getCurrentServers() { ArrayList result = new ArrayList(); Map endpointMap = endpointManager.getEndpointMap(); result.addAll(endpointMap.keySet()); return result; }
/** * test hook */ public void endpointsNetDownForDUnitTest() { logger.debug("PoolImpl - endpointsNetDownForDUnitTest"); setTEST_DURABLE_IS_NET_DOWN(true); try { Thread.sleep(this.pingInterval * 2); } catch (java.lang.InterruptedException ignore) { // do nothing. } Map endpoints = endpointManager.getEndpointMap(); for (Iterator itr = endpoints.values().iterator(); itr.hasNext();) { Endpoint endpoint = (Endpoint) itr.next(); logger.debug("PoolImpl Simulating crash of endpoint {}", endpoint); endpointManager.serverCrashed(endpoint); } }
Endpoint ep = (Endpoint) this.endpointManager.getEndpointMap().get(server); if (ep != null) { QueueConnections qcs = this.queueManager.getAllConnectionsNoWait();