@Test public void testElasticsearchNode() { final ElasticsearchNode node1 = new ElasticsearchNode(HOST, PORT); assertEquals(HOST, node1.getHostName()); assertEquals(PORT, node1.getHttpPort()); final ElasticsearchNode node2 = new ElasticsearchNode(); assertEquals(HOST, node2.setHostName(HOST).getHostName()); assertEquals(PORT, node2.setHttpPort(PORT).getHttpPort()); }
public ElasticsearchNode() { }
ElasticsearchNode { public ElasticsearchNode() { } }
ElasticsearchNode { public ElasticsearchNode() { } ElasticsearchNode();  ElasticsearchNode(String hostName, int httpPort); }
ElasticsearchNode { public ElasticsearchNode() { } ElasticsearchNode();  ElasticsearchNode(String hostName, int httpPort); String getHostName(); int getHttpPort(); ElasticsearchNode setHostName(String hostName); ElasticsearchNode setHttpPort(int httpPort); }
ElasticsearchNode { public ElasticsearchNode() { } ElasticsearchNode();  ElasticsearchNode(String hostName, int httpPort); String getHostName(); int getHttpPort(); ElasticsearchNode setHostName(String hostName); ElasticsearchNode setHttpPort(int httpPort);  }