Connecting remote elasticsearch cluster from the java api

Hi, I have to connect a remote elasticsearch cluster from the java api. I can connect the node from curl. Everything works fine. Now I have to do this from my java code.

  1. No, I don't want to use the transport client.
  2. No, I don't want to create a local node. I want to connect a remote server.

Where I should to put my remote server domain and ip? I don't see the node client can do this.

Does anybody know a good code snippet to do this?

I need analogous functionality to ruby/tire.

Thanks.