put( "client.transport.sniff", clusterSniff ).
put( "client.transport.ignore_cluster_name", ignoreClusterName ).
put( "client.transport.ping_timeout", pingTimeout ).
put( "client.transport.nodes_sampler_interval", samplerInterval ).
build();
TransportClient transportClient = new TransportClient( settings );
for ( String node : nodes ) {
String[] split = node.split( ":" );
String host = split[0];
int port = Integer.valueOf( split[1] );
transportClient.addTransportAddress( new InetSocketTransportAddress( host, port ) );
}
client = transportClient;
}