mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
CHENT-8 Add a simple test to check put and remove work without the need for replication.
This commit is contained in:
@@ -887,7 +887,7 @@ abstract class AbstractChronicleMapBuilder<K, V,
|
||||
return;
|
||||
}
|
||||
try {
|
||||
Class<?> pmel = Class.forName("com.higherfrequencytrading.chronicle.engine.map.PushingMapEventListener");
|
||||
Class<?> pmel = Class.forName("com.higherfrequencytrading.chronicle.enterprise.map.PushingMapEventListener");
|
||||
Constructor<?> constructor = pmel.getConstructor(ChronicleMap[].class);
|
||||
// create a stateless client for each address
|
||||
ChronicleMap[] statelessClients = new ChronicleMap[pushToAddresses.length];
|
||||
@@ -897,7 +897,7 @@ abstract class AbstractChronicleMapBuilder<K, V,
|
||||
cmb.statelessClient(pushToAddresses[i]);
|
||||
statelessClients[i] = cmb.create();
|
||||
}
|
||||
eventListener = (MapEventListener<K, V, ChronicleMap<K, V>>) constructor.newInstance(statelessClients);
|
||||
eventListener = (MapEventListener<K, V, ChronicleMap<K, V>>) constructor.newInstance((Object) statelessClients);
|
||||
} catch (ClassNotFoundException e) {
|
||||
LoggerFactory.getLogger(getClass().getName()).warn("Chronicle Enterprise not found in the class path");
|
||||
} catch (Exception e) {
|
||||
|
||||
@@ -359,7 +359,7 @@ public final class ChronicleMapBuilder<K, V> implements ChronicleMapBuilderI<K,
|
||||
}
|
||||
|
||||
@Override
|
||||
public ChronicleMapBuilderI<K, V> pushTo(InetSocketAddress... addresses) {
|
||||
public ChronicleMapBuilder<K, V> pushTo(InetSocketAddress... addresses) {
|
||||
delegate.pushTo(addresses);
|
||||
return this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user