// TableDataResource tableResource = schemaResource.getTableSubresource (tableName);
// tableResource.listRows(null, 10, 10);
// ClusterDiscoveryService discoveryService = injector.getInstance(ClusterDiscoveryService.class);
// LOG.info("Clusters: " + discoveryService.getClusterNames());
EurekaAstyanaxHostSupplier supplier = injector.getInstance(EurekaAstyanaxHostSupplier.class);
Supplier<List<Host>> list1 = supplier.getSupplier("cass_sandbox");
List<Host> hosts = list1.get();
LOG.info("cass_sandbox");
for (Host host:hosts) {
LOG.info(host.getHostName());
}
Supplier<List<Host>> list2 = supplier.getSupplier("ABCLOUD");
hosts = list2.get();
LOG.info("ABCLOUD");
for (Host host:hosts) {
LOG.info(host.getHostName());
}
Supplier<List<Host>> list3 = supplier.getSupplier("CASSS_PAAS");
hosts = list3.get();
LOG.info("casss_paas");
for (Host host:hosts) {
LOG.info(host.getHostName());
}