saurabhd336 commented on code in PR #8467: URL: https://github.com/apache/pinot/pull/8467#discussion_r855012320
########## pinot-clients/pinot-java-client/src/main/java/org/apache/pinot/client/ConnectionFactory.java: ########## @@ -43,6 +43,29 @@ public static Connection fromZookeeper(String zkUrl) { return fromZookeeper(zkUrl, getDefault()); } + /** + * Creates a connection to Pinot cluster, given its Controller URL + * + * @param scheme controller URL scheme + * @param controllerHost controller host + * @param controllerPort controller port + * @return A connection that connects to brokers as per the given controller + */ + public static Connection fromController(String scheme, String controllerHost, int controllerPort) { + return fromController(scheme, controllerHost, controllerPort, 1000); + } + + public static Connection fromController(String scheme, String controllerHost, int controllerPort, Review Comment: Ack -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org