More replication API renames and Wiki updated

This commit is contained in:
leventov
2014-11-08 05:41:17 +03:00
parent c0d9099da9
commit 1790f7c511
7 changed files with 46 additions and 40 deletions
@@ -59,7 +59,7 @@ public class ChannelReplicationTest {
hubA = ReplicationHub.builder()
.tcpTransportAndNetwork(tcpConfig)
.create((byte) 1);
.createWithId((byte) 1);
map1a = ChronicleMapBuilder.of(Integer.class, CharSequence.class)
.entries(1000)
@@ -71,7 +71,7 @@ public class ChannelReplicationTest {
TcpTransportAndNetworkConfig.forReceivingOnlyNode(8087).heartBeatInterval(1, SECONDS);
hubB = ReplicationHub.builder().tcpTransportAndNetwork(tcpConfig)
.create((byte) 2);
.createWithId((byte) 2);
map1b = ChronicleMapBuilder.of(Integer.class, CharSequence.class)
.entries(1000)
@@ -67,7 +67,7 @@ public class PostChannelCreationTest {
.heartBeatInterval(1, SECONDS);
hubA = ReplicationHub.builder().tcpTransportAndNetwork(tcpConfig)
.create((byte) 1);
.createWithId((byte) 1);
// this is how you add maps after the custer is created
map1a = ChronicleMapBuilder.of(Integer.class, CharSequence.class)
@@ -86,7 +86,7 @@ public class PostChannelCreationTest {
.heartBeatInterval(1, SECONDS);
hubB = ReplicationHub.builder().tcpTransportAndNetwork(tcpConfig)
.create((byte) 2);
.createWithId((byte) 2);
// this is how you add maps after the custer is created
map1b = ChronicleMapBuilder.of(Integer.class, CharSequence.class)
@@ -68,7 +68,7 @@ public class SingleMapChannelTest {
hubA = ReplicationHub.builder()
.maxEntrySize(maxEntrySize)
.tcpTransportAndNetwork(tcpConfig)
.create(identifier);
.createWithId(identifier);
// this is how you add maps after the custer is created
map1a = ChronicleMapBuilder.of(Integer.class, CharSequence.class)
.entries(1000)
@@ -81,7 +81,7 @@ public class SingleMapChannelTest {
.forSendingNode(8087, new InetSocketAddress("localhost", 8086))
.heartBeatInterval(1, SECONDS);
hubB = ReplicationHub.builder().tcpTransportAndNetwork(tcpConfig).create((byte) 2);
hubB = ReplicationHub.builder().tcpTransportAndNetwork(tcpConfig).createWithId((byte) 2);
// this is how you add maps after the custer is created
map1b = ChronicleMapBuilder.of(Integer.class, CharSequence.class)
@@ -76,7 +76,7 @@ public class ChannelExample {
hubOnServer1 = ReplicationHub.builder()
.tcpTransportAndNetwork(tcpConfig)
.create(identifier);
.createWithId(identifier);
// this demotes favoriteColour
short channel1 = (short) 1;
@@ -109,7 +109,7 @@ public class ChannelExample {
hubOnServer2 = ReplicationHub.builder()
.tcpTransportAndNetwork(tcpConfig)
.create(identifier);
.createWithId(identifier);
// this demotes favoriteColour