HCOLL-230 - split the buffers into a read buffer and a write buffer, add trace code for debugging ( which will be removed soon )

This commit is contained in:
Rob Austin
2014-12-04 11:03:54 +00:00
parent 8d28d0194d
commit 9409fac001
4 changed files with 364 additions and 118 deletions
@@ -237,7 +237,9 @@ public class StatelessClientTest {
.class, CharSequence.class)
.statelessClient(new InetSocketAddress("localhost", port)).create()) {
assertEquals("EXAMPLE-10", statelessMap.get(10));
assertEquals(1, statelessMap.size());
int size = statelessMap.size();
assertEquals(1, size);
}
}
}
@@ -50,11 +50,11 @@ public class TCPSocketReplicationBootStrapTest {
@Test
public void testBootstrap() throws IOException, InterruptedException {
map1 = newTcpSocketShmIntString((byte) 1, 8069);
map1 = newTcpSocketShmIntString((byte) 1, 8091);
ChronicleMapBuilder<Integer, CharSequence> map2aBuilder =
newTcpSocketShmBuilder(Integer.class, CharSequence.class,
(byte) 2, 8066, new InetSocketAddress("localhost", 8069));
(byte) 2, 8092, new InetSocketAddress("localhost", 8091));
final ChronicleMap<Integer, CharSequence> map2a =
map2aBuilder.createPersistedTo(getPersistenceFile());
map2a.put(10, "EXAMPLE-10"); // this will be the last time that map1 go an update from map2