protected void buildHosts(List<Server> servers, List<Host> hostsList) { List<OracleNoSQLHost> oracleNoSQLHosts = new CopyOnWriteArrayList<OracleNoSQLHost>(); for (Server server : servers) { String host = server.getHost().trim(); String portAsString = server.getPort().trim(); onValidation(host, portAsString); Properties serverProperties = server.getProperties(); OracleNoSQLHost oracleNoSQLHost = new OracleNoSQLHost(host, Integer.parseInt(portAsString)); setConfig(oracleNoSQLHost, null, serverProperties); oracleNoSQLHosts.add(oracleNoSQLHost); hostsList.add(oracleNoSQLHost); } }
protected void buildHosts(List<Server> servers, List<Host> hostsList) { List<CassandraHost> cassandraHosts = new CopyOnWriteArrayList<CassandraHost>(); for (Server server : servers) { String host = server.getHost().trim(); String portAsString = server.getPort().trim(); onValidation(host, portAsString); Properties serverProperties = server.getProperties(); CassandraHost cassandraHost = new CassandraHost(host, Integer.parseInt(portAsString)); setConfig(cassandraHost, null,serverProperties); cassandraHosts.add(cassandraHost); hostsList.add(cassandraHost); } }
protected void buildHosts(List<Server> servers, List<Host> hostsList) { List<CassandraHost> cassandraHosts = new CopyOnWriteArrayList<CassandraHost>(); for (Server server : servers) { String host = server.getHost().trim(); String portAsString = server.getPort().trim(); onValidation(host, portAsString); Properties serverProperties = server.getProperties(); CassandraHost cassandraHost = new CassandraHost(host, Integer.parseInt(portAsString)); setConfig(cassandraHost, null, serverProperties); cassandraHosts.add(cassandraHost); hostsList.add(cassandraHost); } }