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:
@@ -47,4 +47,31 @@ public class NodeDiscoveryHostPortBroadcasterTest extends TestCase {
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Test
|
||||
public void testJustListen() throws IOException, InterruptedException {
|
||||
|
||||
final UdpReplicationConfig udpConfig = UdpReplicationConfig
|
||||
.simple(Inet4Address.getByName("255.255.255.255"), 1235);
|
||||
|
||||
final Bytes identifierBitSetBits = new ByteBufferBytes(ByteBuffer.allocate(128 / 8));
|
||||
|
||||
final RemoteNodes remoteNodes = new RemoteNodes(identifierBitSetBits);
|
||||
|
||||
BytesExternalizableImpl externalizable = new BytesExternalizableImpl(remoteNodes);
|
||||
|
||||
|
||||
final NodeDiscoveryHostPortBroadcaster nodeDiscoveryHostPortBroadcaster
|
||||
= new NodeDiscoveryHostPortBroadcaster(udpConfig, 1024, externalizable);
|
||||
|
||||
externalizable.setModificationNotifier(nodeDiscoveryHostPortBroadcaster);
|
||||
|
||||
|
||||
Thread.sleep(10000000);
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user