@Override public List/* ServerLocation */ findServersForQueue(Set/* <ServerLocation> */ excludedServers, int numServers, ClientProxyMembershipID proxyId, boolean findDurableQueue) { if (PoolImpl.TEST_DURABLE_IS_NET_DOWN) { return new ArrayList(); } QueueConnectionRequest request = new QueueConnectionRequest(proxyId, numServers, excludedServers, serverGroup, findDurableQueue); QueueConnectionResponse response = (QueueConnectionResponse) queryLocators(request); if (response == null) { throw new NoAvailableLocatorsException( "Unable to connect to any locators in the list " + locators); } List result = response.getServers(); return result; }
return new QueueConnectionResponse(durableQueueFound, servers);