From eb1074ab007eb4268dcced4d28c44cf214e58ecf Mon Sep 17 00:00:00 2001 From: Rob Austin Date: Mon, 27 Oct 2014 18:27:13 +0000 Subject: [PATCH] HCOLL-167 docs --- README.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 2006ed019..f24a28db2 100644 --- a/README.md +++ b/README.md @@ -530,8 +530,7 @@ map = ChronicleMapBuilder ![TCP/IP Replication 3Way](http://openhft.net/wp-content/uploads/2014/09/Screen-Shot-2014-10-27-at-18.19.05.png) -Below is example of what to set the tcpReplicationConfig for each host when setting up three -way. +Below is example how to set up tcpReplicationConfig for three host ```java String hostServer1 = "localhost"; // change this to your host @@ -548,14 +547,14 @@ InetSocketAddress inetSocketAddress3 = new InetSocketAddress(hostServer3, server // this is to go on server 1 -TcpReplicationConfig tcpConfigServer1 = TcpReplicationConfig.of(serverPort1); +TcpReplicationConfig tcpReplicationConfigServer1 = TcpReplicationConfig.of(serverPort1); // this is to go on server 2 -TcpReplicationConfig tcpConfigServer2 = TcpReplicationConfig.of(serverPort2, +TcpReplicationConfig tcpReplicationConfigServer2 = TcpReplicationConfig.of(serverPort2, inetSocketAddress1); // this is to go on server 3 -TcpReplicationConfig tcpConfigServer3 = TcpReplicationConfig.of(serverPort3, +TcpReplicationConfig tcpReplicationConfigServer3 = TcpReplicationConfig.of(serverPort3, inetSocketAddress1,inetSocketAddress2); ```