From 33d37c493fba5a75b29cd91bc0958783df29252f Mon Sep 17 00:00:00 2001 From: Rob Austin Date: Mon, 27 Oct 2014 15:35:07 +0000 Subject: [PATCH] HCOLL-167 updated docs --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index aab5f5f95..72210ec3f 100644 --- a/README.md +++ b/README.md @@ -525,6 +525,17 @@ map = ChronicleMapBuilder .create(); ``` +and example of setting up three maps with TCP Replication, ideally they would be on different +servers, but for this example they are on the same host : + +```java +map1 = newTcpSocketShmIntString((byte) 1, 8076, new InetSocketAddress("localhost", 8077), + new InetSocketAddress("localhost", 8079)); +map2 = newTcpSocketShmIntString((byte) 2, 8077, new InetSocketAddress("localhost", 8079)); +map3 = newTcpSocketShmIntString((byte) 3, 8079); + +``` + ### Bootstrapping When a node is connected over the network to an active grid of nodes. It must first receive any data that it does not have from the other nodes. Eventually, all the nodes in the grid have to hold a