Cluster cluster = Cluster.builder().
addContactPoint("10.11.12.13").
build();
Session session = cluster.connect();
Metadata metadata = cluster.getMetadata();
System.out.printf("Connected to cluster: %s\n", metadata.getClusterName());
for (Host host : metadata.getAllHosts()) {
System.out.printf("Datatacenter: %s; Host: %s; Rack: %s --> Is up? : %s\n",
host.getDatacenter(), host.getAddress(), host.getRack(), host.isUp());
}