HCOLL-134 ( release draft cut of the code so that I can test it across my network )

This commit is contained in:
Rob Austin
2014-09-26 17:27:45 +01:00
parent 67699ecf00
commit b05dfadc04
@@ -20,6 +20,9 @@ import static net.openhft.chronicle.map.NodeDiscoveryHostPortBroadcaster.BOOTSTR
import static net.openhft.chronicle.map.NodeDiscoveryHostPortBroadcaster.LOG;
/**
* Broad cast the nodes host ports and identifiers over UDP, to make it easy to join a grid of remote nodes
* just by name, this functionality requires UDP
*
* @author Rob Austin.
*/
public class NodeDiscoveryHostPortBroadcaster extends UdpChannelReplicator {
@@ -479,18 +482,15 @@ class BytesExternalizableImpl implements BytesExternalizable {
public void sendBootStrap() {
bootstrapRequired.set(true);
}
public void add(InetSocketAddress interfaceAddress) {
allNodes.add(interfaceAddress);
}
public void add(byte identifier) {
allNodes.activeIdentifierBitSet().set(identifier);
}