use of com.hazelcast.config.JoinConfig in project hazelcast by hazelcast.
the class CacheClientListenerTest method getCachingProvider.
@Override
protected CachingProvider getCachingProvider() {
Config config = new Config();
JoinConfig joinConfig = config.getNetworkConfig().getJoin();
joinConfig.getAwsConfig().setEnabled(false);
joinConfig.getMulticastConfig().setEnabled(false);
joinConfig.getTcpIpConfig().setEnabled(false);
Hazelcast.newHazelcastInstance(config);
Hazelcast.newHazelcastInstance(config);
ClientConfig clientConfig = new ClientConfig();
clientConfig.getNetworkConfig().addAddress("127.0.0.1");
hazelcastInstance = HazelcastClient.newHazelcastClient(clientConfig);
return HazelcastClientCachingProvider.createCachingProvider(hazelcastInstance);
}
use of com.hazelcast.config.JoinConfig in project hazelcast by hazelcast.
the class PartitionServiceBeanDTOTest method getConfig.
@Override
protected Config getConfig() {
Config config = new Config();
// Join is disabled intentionally. will start standalone HazelcastInstance.
NetworkConfig networkConfig = config.getNetworkConfig();
JoinConfig join = networkConfig.getJoin();
join.getMulticastConfig().setEnabled(false);
join.getTcpIpConfig().setEnabled(false);
return config;
}
Aggregations