code: public boolean addCassandraHost(CassandraHost cassandraHost)
      {
          String keysapce = KunderaMetadataManager.getPersistenceUnitMetadata(kunderaMetadata, getPersistenceUnit())
                  .getProperties().getProperty(PersistenceProperties.KUNDERA_KEYSPACE);
          PoolConfiguration prop = new PoolProperties();
          prop.setHost(cassandraHost.getHost());
          prop.setPort(cassandraHost.getPort());
          prop.setKeySpace(keysapce);
  
          CassandraUtilities.setPoolConfigPolicy(cassandraHost, prop);
          try
          {
              if (logger.isInfoEnabled())
              {
                  logger.info("Initializing connection for keyspace {},host {},port {}", keysapce,
                          cassandraHost.getHost(), cassandraHost.getPort());
              }
              ConnectionPool pool = new ConnectionPool(prop);
              hostPools.put(cassandraHost, pool);
              return true;
          }
          catch (TException e)
          {
              logger.warn("Node " + cassandraHost.getHost() + " are still down");
              return false;
          }
      }
docs: Adds a pool in hostPools map for given host.
  
  @param cassandraHost the cassandra host
  @return true id added successfully.