Example #1
0
 @Override
 public List<String> getKnownHosts() {
   List<String> hosts = new ArrayList<String>();
   for (CassandraHost cassandraHost : connectionManager.getHosts()) {
     hosts.add(cassandraHost.toString());
   }
   return hosts;
 }
Example #2
0
 /* (non-Javadoc)
  * @see me.prettyprint.cassandra.service.Cluster#getKnownPoolHosts(boolean)
  */
 @Override
 public Set<CassandraHost> getKnownPoolHosts(boolean refresh) {
   if (refresh || knownPoolHosts == null) {
     knownPoolHosts = connectionManager.getHosts();
     if (log.isInfoEnabled()) {
       log.info("found knownPoolHosts: {}", knownPoolHosts);
     }
   }
   return knownPoolHosts;
 }
Example #3
0
 @Override
 public int getNumPools() {
   return connectionManager.getHosts().size();
 }