use of com.hazelcast.config.JoinConfig in project hazelcast by hazelcast.
the class TcpIpJoinTest method test_whenDifferentBuildNumber.
@Test
public void test_whenDifferentBuildNumber() {
Config config = new Config();
NetworkConfig networkConfig = config.getNetworkConfig();
JoinConfig join = networkConfig.getJoin();
join.getTcpIpConfig().setEnabled(true);
join.getTcpIpConfig().addMember("127.0.0.1");
testJoin_With_DifferentBuildNumber(config);
}
use of com.hazelcast.config.JoinConfig in project hazelcast by hazelcast.
the class TcpIpJoinTest method test_whenPortAndInterfacesConfigured.
@Test
public void test_whenPortAndInterfacesConfigured() throws Exception {
Config config = new Config();
NetworkConfig networkConfig = config.getNetworkConfig();
JoinConfig join = networkConfig.getJoin();
TcpIpConfig tcpIpConfig = join.getTcpIpConfig();
tcpIpConfig.setEnabled(true);
tcpIpConfig.addMember("127.0.0.1:5701");
tcpIpConfig.addMember("127.0.0.1:5702");
InterfacesConfig interfaces = networkConfig.getInterfaces();
interfaces.setEnabled(true);
interfaces.addInterface("127.0.0.1");
testJoin(config);
}
use of com.hazelcast.config.JoinConfig in project hazelcast by hazelcast.
the class MulticastJoinTest method test.
@Test
public void test() throws Exception {
Config config = new Config();
NetworkConfig networkConfig = config.getNetworkConfig();
JoinConfig join = networkConfig.getJoin();
MulticastConfig multicastConfig = join.getMulticastConfig();
multicastConfig.setEnabled(true);
testJoin(config);
}
use of com.hazelcast.config.JoinConfig in project hazelcast by hazelcast.
the class MulticastJoinTest method test_whenDifferentBuildNumber.
@Test
public void test_whenDifferentBuildNumber() {
Config config = new Config();
JoinConfig join = config.getNetworkConfig().getJoin();
MulticastConfig multicastConfig = join.getMulticastConfig();
multicastConfig.setEnabled(true);
testJoin_With_DifferentBuildNumber(config);
}
use of com.hazelcast.config.JoinConfig in project hazelcast by hazelcast.
the class TcpIpHostnameJoinTest method test_whenExplicitPortConfiguredMixedHostnames.
@Test
public void test_whenExplicitPortConfiguredMixedHostnames() throws Exception {
Config config = new Config();
NetworkConfig networkConfig = config.getNetworkConfig();
JoinConfig join = networkConfig.getJoin();
TcpIpConfig tcpIpConfig = join.getTcpIpConfig();
tcpIpConfig.setEnabled(true);
tcpIpConfig.addMember(HOSTNAME1 + ":5701");
tcpIpConfig.addMember(HOSTNAME2 + ":5702");
testJoin(config);
}
Aggregations