use of com.hazelcast.config.JoinConfig in project hazelcast by hazelcast.
the class TcpIpHostnameJoinTest method test_whenHostUnresolvable.
@Test
public void test_whenHostUnresolvable() {
Config config = new Config();
NetworkConfig networkConfig = config.getNetworkConfig();
JoinConfig join = networkConfig.getJoin();
TcpIpConfig tcpIpConfig = join.getTcpIpConfig();
tcpIpConfig.setEnabled(true);
tcpIpConfig.addMember(HOSTNAME1);
tcpIpConfig.addMember("nonexistinghost");
HazelcastInstance hz = Hazelcast.newHazelcastInstance(config);
assertClusterSize(1, hz);
}
use of com.hazelcast.config.JoinConfig in project hazelcast by hazelcast.
the class TcpIpHostnameJoinTest 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(HOSTNAME1);
testJoin_With_DifferentBuildNumber(config);
}
use of com.hazelcast.config.JoinConfig in project hazelcast by hazelcast.
the class MemcachedMultiendpointTest method createConfig.
@Override
protected Config createConfig() {
Config config = smallInstanceConfig();
AdvancedNetworkConfig anc = config.getAdvancedNetworkConfig();
anc.setEnabled(true).setMemcacheEndpointConfig(new ServerSocketEndpointConfig());
// Join is disabled intentionally. will start standalone HazelcastInstances.
JoinConfig join = anc.getJoin();
join.getAutoDetectionConfig().setEnabled(false);
join.getTcpIpConfig().setEnabled(false);
return config;
}
use of com.hazelcast.config.JoinConfig in project hazelcast by hazelcast.
the class MemcachedTest method createConfig.
protected Config createConfig() {
Config config = smallInstanceConfig();
config.getNetworkConfig().getMemcacheProtocolConfig().setEnabled(true);
// Join is disabled intentionally. will start standalone HazelcastInstances.
JoinConfig join = config.getNetworkConfig().getJoin();
join.getAutoDetectionConfig().setEnabled(false);
join.getTcpIpConfig().setEnabled(false);
return config;
}
use of com.hazelcast.config.JoinConfig in project hazelcast by hazelcast.
the class RestClusterBadRequestTest method getConfig.
@Override
protected Config getConfig() {
Config config = smallInstanceConfig();
RestApiConfig restApiConfig = config.getNetworkConfig().getRestApiConfig();
restApiConfig.setEnabled(true);
restApiConfig.enableAllGroups();
JoinConfig joinConfig = config.getNetworkConfig().getJoin();
joinConfig.getMulticastConfig().setEnabled(false);
joinConfig.getTcpIpConfig().setEnabled(true).addMember("127.0.0.1");
return config;
}
Aggregations