use of com.questdb.net.ha.config.ServerNode in project questdb by bluestreak01.
the class ServerNodeTest method testIPv4AndPort.
@Test
public void testIPv4AndPort() {
ServerNode node = new ServerNode(0, "192.168.1.10:8080");
Assert.assertEquals("192.168.1.10", node.getHostname());
Assert.assertEquals(8080, node.getPort());
}
use of com.questdb.net.ha.config.ServerNode in project questdb by bluestreak01.
the class ServerNodeTest method testIPv6.
@Test
public void testIPv6() {
ServerNode node = new ServerNode(0, "[fe80::5fc:43c:eef0:5b8e%3]");
Assert.assertEquals("fe80::5fc:43c:eef0:5b8e%3", node.getHostname());
}
Aggregations