*/
public SeedNodesRequest(final List<String> nodes) {
super(null, null);
if (nodes == null || nodes.isEmpty()) {
throw new ConfigurationException("Empty or null bootstrap list provided.");
}
Set<InetAddress> parsedNodes = new HashSet<InetAddress>();
for (String node : nodes) {
if (node == null || node.isEmpty()) {
throw new ConfigurationException("Empty or null host in bootstrap list.");
}
try {
parsedNodes.add(InetAddress.getByName(node));
} catch (UnknownHostException e) {
throw new ConfigurationException("Unknown host " + node + " in bootstrap list.", e);
}
}
this.nodes = parsedNodes;
}