use of com.hazelcast.client.config.ClientConfig in project hazelcast by hazelcast.
the class AbstractListenersOnReconnectTest method testTemporaryBlockedNoDisconnectionSmartRouting.
//-------------------------- testListenersTemporaryNetworkBlockage --------------------- //
@Test
public void testTemporaryBlockedNoDisconnectionSmartRouting() {
factory.newHazelcastInstance();
ClientConfig clientConfig = getSmartClientConfig(4, 1);
client = factory.newHazelcastClient(clientConfig);
testListenersTemporaryNetworkBlockage();
}
use of com.hazelcast.client.config.ClientConfig in project hazelcast by hazelcast.
the class AbstractListenersOnReconnectTest method testListenersSmartRoutingTerminateRandomNode.
@Test
public void testListenersSmartRoutingTerminateRandomNode() {
factory.newInstances(null, 3);
ClientConfig clientConfig = getSmartClientConfig();
client = factory.newHazelcastClient(clientConfig);
testListenersTerminateRandomNode();
}
use of com.hazelcast.client.config.ClientConfig in project hazelcast by hazelcast.
the class AbstractListenersOnReconnectTest method testClusterReconnectMultipleServerDueToHeartbeatNonSmartRouting.
@Test
public void testClusterReconnectMultipleServerDueToHeartbeatNonSmartRouting() {
factory.newInstances(null, 3);
ClientConfig clientConfig = getNonSmartClientConfig(4, 1);
client = factory.newHazelcastClient(clientConfig);
testListenersHeartbeatTimeoutToOwner();
}
use of com.hazelcast.client.config.ClientConfig in project hazelcast by hazelcast.
the class AbstractListenersOnReconnectTest method testClusterReconnectDueToHeartbeatNonSmartRouting.
@Test
public void testClusterReconnectDueToHeartbeatNonSmartRouting() {
factory.newHazelcastInstance();
ClientConfig clientConfig = getNonSmartClientConfig(4, 1);
client = factory.newHazelcastClient(clientConfig);
testListenersHeartbeatTimeoutToOwner();
}
use of com.hazelcast.client.config.ClientConfig in project hazelcast by hazelcast.
the class ClientMapNearCacheBasicTest method createContext.
@Override
protected <K, V> NearCacheTestContext<K, V, Data, String> createContext() {
ClientConfig clientConfig = getClientConfig().addNearCacheConfig(nearCacheConfig);
HazelcastInstance member = hazelcastFactory.newHazelcastInstance(getConfig());
HazelcastClientProxy client = (HazelcastClientProxy) hazelcastFactory.newHazelcastClient(clientConfig);
IMap<K, V> memberMap = member.getMap(DEFAULT_NEAR_CACHE_NAME);
IMap<K, V> clientMap = client.getMap(DEFAULT_NEAR_CACHE_NAME);
NearCacheManager nearCacheManager = client.client.getNearCacheManager();
NearCache<Data, String> nearCache = nearCacheManager.getNearCache(DEFAULT_NEAR_CACHE_NAME);
return new NearCacheTestContext<K, V, Data, String>(client.getSerializationService(), client, member, new IMapDataStructureAdapter<K, V>(clientMap), new IMapDataStructureAdapter<K, V>(memberMap), false, nearCache, nearCacheManager);
}
Aggregations