use of com.hazelcast.config.NetworkConfig in project hazelcast by hazelcast.
the class NodeExtensionTest method getConfig.
protected Config getConfig() {
Config config = new Config();
NetworkConfig networkConfig = config.getNetworkConfig();
JoinConfig join = networkConfig.getJoin();
join.getMulticastConfig().setEnabled(false);
return config;
}
use of com.hazelcast.config.NetworkConfig in project hazelcast by hazelcast.
the class MapWordCountAggregationPerformanceTest method buildCluster.
private static HazelcastInstance buildCluster(int memberCount) {
Config config = new Config();
NetworkConfig networkConfig = config.getNetworkConfig();
networkConfig.getJoin().getMulticastConfig().setEnabled(false);
networkConfig.getJoin().getTcpIpConfig().setEnabled(true);
networkConfig.getJoin().getTcpIpConfig().setMembers(singletonList("127.0.0.1"));
MapConfig mapConfig = new MapConfig();
mapConfig.setInMemoryFormat(InMemoryFormat.OBJECT);
mapConfig.setName(MAP_NAME);
mapConfig.setBackupCount(0);
config.addMapConfig(mapConfig);
config.setProperty("hazelcast.query.predicate.parallel.evaluation", "true");
config.setProperty("hazelcast.aggregation.accumulation.parallel.evaluation", "true");
HazelcastInstance[] hazelcastInstances = new HazelcastInstance[memberCount];
for (int i = 0; i < memberCount; i++) {
hazelcastInstances[i] = Hazelcast.newHazelcastInstance(config);
}
return hazelcastInstances[0];
}
use of com.hazelcast.config.NetworkConfig 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