Utility service to locate nodes in a solr cloud where a given collection (i.e. index) is deployed and can be requested.
The service use Zookeeper Java API to read solr ZNode of Zookeeper to fetch both clusterstate.json and aliases.json files.
This project includes an example implementation of znode Watcher api.
The watcher bring in the benefit for the clients to be aware in near real time of any change in solr cluster state.
Test class shows an example usage of the service. You only need to provide a connexion string for zookeeper client.
P.S : You may want to go with solr4j library