title: How to determine if a connection has been established with elasticsearch + Java API?
body: <p>I'm very new to elasticsearch and the Java API. How do I determine if I've established a successful connection to elasticsearch with the API? I'd normally expect a response from the server...</p>
  
  <p>Code</p>
  
  <pre><code>Client client = new TransportClient()
          .addTransportAddress(new InetSocketTransportAddress("localhost", 9300))
          .addTransportAddress(new InetSocketTransportAddress("localhost", 9300));
  </code></pre>
  
  <p>The node name is set to Test and I'm getting the following out of Eclipse</p>
  
  <pre><code>Nov 18, 2014 5:29:04 PM org.elasticsearch.plugins.PluginsService &lt;init&gt;
  INFO: [Hannibal King] loaded [], sites []
  </code></pre>
  
  <p>I'm not seeing anything on the elasticsearch side but I'm not familiar enough to know if this is a successful connection? </p>