mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
HCOLL-134 ( release draft cut of the code so that I can test it across my network )
This commit is contained in:
@@ -7,6 +7,7 @@ import org.junit.Test;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.Inet4Address;
|
||||
import java.net.InetSocketAddress;
|
||||
import java.nio.ByteBuffer;
|
||||
|
||||
public class NodeDiscoveryHostPortBroadcasterTest extends TestCase {
|
||||
@@ -21,11 +22,24 @@ public class NodeDiscoveryHostPortBroadcasterTest extends TestCase {
|
||||
|
||||
final RemoteNodes remoteNodes = new RemoteNodes(identifierBitSetBits);
|
||||
|
||||
final NodeDiscoveryHostPortBroadcaster nodeDiscoveryHostPortBroadcaster
|
||||
= new NodeDiscoveryHostPortBroadcaster(udpConfig, 1024, remoteNodes);
|
||||
BytesExternalizableImpl externalizable = new BytesExternalizableImpl(remoteNodes);
|
||||
|
||||
Thread.sleep(50000000);
|
||||
|
||||
final NodeDiscoveryHostPortBroadcaster nodeDiscoveryHostPortBroadcaster
|
||||
= new NodeDiscoveryHostPortBroadcaster(udpConfig, 1024, externalizable);
|
||||
|
||||
externalizable.setModificationNotifier(nodeDiscoveryHostPortBroadcaster);
|
||||
|
||||
|
||||
Thread.sleep(1000);
|
||||
|
||||
externalizable.sendBootStrap();
|
||||
|
||||
externalizable.add(new InetSocketAddress("myhost", 8888));
|
||||
externalizable.add((byte) 2);
|
||||
|
||||
Thread.sleep(1000);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user