cassandra-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cyril Scetbon <>
Subject Getting datacenter from InetSocketAddress
Date Wed, 27 May 2015 16:49:14 GMT

I have a Cluster instance and I'd like to get all hosts from it to check in which datacenter
they are. Is there a way to do that ? I tried by accessing the cluster metadata and using
allHosts, but this function is only private :(
Actually, I have a cluster instance and an ip address and I'd like to get the datacenter corresponding
to this host. Is there an easy way to do it with the datastax java driver ?

View raw message