When I create a session for Cassandra cluster using datastax driver Cluster java class, I need to find for a particular session which data node is used as coordinator node.
I tried session.getState().getConnectedHosts() but this is giving all data nodes in my cluster.
Actually at one point of time there will be only one coordinator node which is used. Can anyone please help me to find the coordinator node with java code.
Thanks.