hazelcast

How do you programmatically configure hazelcast for the multicast discovery mechanism?

折月煮酒 提交于 2019-11-27 21:13:58
How do you programmatically configure hazelcast for the multicast discovery mechanism? Details: The documentation only supplies an example for TCP/IP and is out-of-date: it uses Config.setPort(), which no longer exists. My configuration looks like this, but discovery does not work (i.e. I get the output "Members: 1" : Config cfg = new Config(); NetworkConfig network = cfg.getNetworkConfig(); network.setPort(PORT_NUMBER); JoinConfig join = network.getJoin(); join.getTcpIpConfig().setEnabled(false); join.getAwsConfig().setEnabled(false); join.getMulticastConfig().setEnabled(true); join

How do you programmatically configure hazelcast for the multicast discovery mechanism?

强颜欢笑 提交于 2019-11-26 20:34:55
问题 How do you programmatically configure hazelcast for the multicast discovery mechanism? Details: The documentation only supplies an example for TCP/IP and is out-of-date: it uses Config.setPort(), which no longer exists. My configuration looks like this, but discovery does not work (i.e. I get the output "Members: 1" : Config cfg = new Config(); NetworkConfig network = cfg.getNetworkConfig(); network.setPort(PORT_NUMBER); JoinConfig join = network.getJoin(); join.getTcpIpConfig().setEnabled