use of org.apache.geode.cache.client.internal.locator.ClientReplacementRequest in project geode by apache.
the class AutoConnectionSourceImpl method findReplacementServer.
public ServerLocation findReplacementServer(ServerLocation currentServer, Set excludedServers) {
if (PoolImpl.TEST_DURABLE_IS_NET_DOWN) {
return null;
}
ClientReplacementRequest request = new ClientReplacementRequest(currentServer, excludedServers, serverGroup);
ClientConnectionResponse response = (ClientConnectionResponse) queryLocators(request);
if (response == null) {
// getLogger().warning("Unable to connect to any locators in the list " + locators);
throw new NoAvailableLocatorsException("Unable to connect to any locators in the list " + locators);
}
return response.getServer();
}
Aggregations