private ImmutableSet<CassandraJmxCompactionClient> createCompactionClients(CassandraJmxCompactionConfig jmxConfig){
  Set<CassandraJmxCompactionClient> clients=Sets.newHashSet();
  Set<InetSocketAddress> servers=config.servers();
  int jmxPort=jmxConfig.port();
  for (  InetSocketAddress addr : servers) {
    CassandraJmxCompactionClient client=createCompactionClient(addr.getHostString(),jmxPort,jmxConfig.username(),jmxConfig.password());
    clients.add(client);
  }
  return ImmutableSet.copyOf(clients);
}

private ImmutableSet < CassandraJmxCompactionClient > createCompactionClients ( CassandraJmxCompactionConfig jmxConfig ) { Set < CassandraJmxCompactionClient > clients = Sets . newHashSet ( ) ; Set < InetSocketAddress > servers = config . servers ( ) ; int jmxPort = jmxConfig . port ( ) ; for ( InetSocketAddress addr : servers ) { CassandraJmxCompactionClient client = createCompactionClient ( addr . getHostString ( ) , jmxPort , jmxConfig . username ( ) , jmxConfig . password ( ) ) ; clients . add ( client ) ; } return ImmutableSet . copyOf ( clients ) ; }
return an empty set if no client can be created .
