mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
More replication API renames and Wiki updated
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user