use of com.hazelcast.spi.discovery.multicast.impl.MulticastMemberInfo in project hazelcast by hazelcast.
the class MulticastDiscoveryStrategy method discoverNodes.
@Override
public Iterable<DiscoveryNode> discoverNodes() {
DiscoveryNode discoveryNode;
MulticastMemberInfo multicastMemberInfo = multicastDiscoveryReceiver.receive();
if (multicastMemberInfo == null) {
return null;
}
ArrayList<DiscoveryNode> arrayList = new ArrayList<DiscoveryNode>();
try {
discoveryNode = new SimpleDiscoveryNode(new Address(multicastMemberInfo.getHost(), multicastMemberInfo.getPort()));
arrayList.add(discoveryNode);
} catch (UnknownHostException e) {
logger.finest(e.getMessage());
}
return arrayList;
}
Aggregations