public List<ServerLocationAndMemberId> getCurrentServers() {
    Map<ServerLocationAndMemberId, Endpoint> endpointMap = endpointManager.getEndpointMap();
    return new ArrayList<>(endpointMap.keySet());
  }
Returns a list of ServerLocation instances; one for each server we are currently connected to.
geode-core/src/main/java/org/apache/geode/cache/client/internal/PoolImpl.java