mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
HCOLL-164 added a void marshaller and Map replication test using VOID value
This commit is contained in:
@@ -26,9 +26,8 @@ import java.io.Closeable;
|
||||
import java.io.IOException;
|
||||
import java.net.InetSocketAddress;
|
||||
|
||||
import static java.util.concurrent.TimeUnit.SECONDS;
|
||||
import static net.openhft.chronicle.map.Builder.getPersistenceFile;
|
||||
import static net.openhft.chronicle.map.Replicators.tcp;
|
||||
import static net.openhft.chronicle.map.Builder.newTcpSocketShmBuilder;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
@@ -44,18 +43,6 @@ public class TCPSocketReplication4WayMapTest {
|
||||
private ChronicleMap<Integer, CharSequence> map3;
|
||||
private ChronicleMap<Integer, CharSequence> map4;
|
||||
|
||||
public static <K, V> ChronicleMapBuilder<K, V> newTcpSocketShmBuilder(
|
||||
Class<K> kClass, Class<V> vClass,
|
||||
final byte identifier,
|
||||
final int serverPort,
|
||||
final InetSocketAddress... endpoints) throws IOException {
|
||||
TcpReplicationConfig tcpConfig = TcpReplicationConfig.of(serverPort, endpoints)
|
||||
.heartBeatInterval(1L, SECONDS);
|
||||
return ChronicleMapBuilder.of(kClass, vClass)
|
||||
.entries(20000L)
|
||||
.addReplicator(tcp(identifier, tcpConfig));
|
||||
}
|
||||
|
||||
public static <T extends ChronicleMap<Integer, CharSequence>> T newTcpSocketShmIntString(
|
||||
final byte identifier,
|
||||
final int serverPort,
|
||||
@@ -64,6 +51,8 @@ public class TCPSocketReplication4WayMapTest {
|
||||
identifier, serverPort, endpoints).create(getPersistenceFile());
|
||||
}
|
||||
|
||||
|
||||
|
||||
static ChronicleMap<IntValue, CharSequence> newTcpSocketShmIntValueString(
|
||||
final byte identifier,
|
||||
final int serverPort,
|
||||
|
||||
Reference in New Issue
Block a user