code: public void retrieveAllEndpointsAndSet(Protocol protocol) throws SQLException {
      // For a given cluster, same port for all endpoints and same end host address
      if (clusterDnsSuffix != null) {
        List<String> endpoints = getCurrentEndpointIdentifiers(protocol);
        setUrlParserFromEndpoints(endpoints, protocol.getPort());
      }
  
    }
docs: Retrieves the information necessary to add a new endpoint. Calls the methods that retrieves the
  instance identifiers and sets urlParser accordingly.
  
  @param protocol current protocol connected to
  @throws SQLException if connection error occur