use of com.hazelcast.client.config.ClientConfig in project hazelcast by hazelcast.
the class ClientExecutionPoolSizeLowTest method setup.
@Before
public void setup() throws IOException {
server1 = hazelcastFactory.newHazelcastInstance();
server2 = hazelcastFactory.newHazelcastInstance();
ClientConfig clientConfig = new ClientConfig();
clientConfig.setExecutorPoolSize(1);
clientConfig.getNetworkConfig().setRedoOperation(true);
HazelcastInstance client = hazelcastFactory.newHazelcastClient(clientConfig);
map = client.getMap(randomString());
}
use of com.hazelcast.client.config.ClientConfig in project hazelcast by hazelcast.
the class AbstractListenersOnReconnectTest method testTemporaryBlockedNoDisconnectionMultipleServerNonSmartRouting.
@Test
public void testTemporaryBlockedNoDisconnectionMultipleServerNonSmartRouting() {
factory.newInstances(null, 3);
ClientConfig clientConfig = getNonSmartClientConfig(4, 1);
client = factory.newHazelcastClient(clientConfig);
testListenersTemporaryNetworkBlockage();
}
use of com.hazelcast.client.config.ClientConfig in project hazelcast by hazelcast.
the class AbstractListenersOnReconnectTest method testListenersSmartRouting.
@Test
public void testListenersSmartRouting() {
factory.newHazelcastInstance();
ClientConfig clientConfig = getSmartClientConfig();
client = factory.newHazelcastClient(clientConfig);
testListenersTerminateOwnerNode();
}
use of com.hazelcast.client.config.ClientConfig in project hazelcast by hazelcast.
the class ClientRandomLBTest method testRandomLB_withMembers.
@Test
public void testRandomLB_withMembers() {
RandomLB randomLB = new RandomLB();
TestHazelcastInstanceFactory factory = new TestHazelcastInstanceFactory();
HazelcastInstance server = factory.newHazelcastInstance();
Cluster cluster = server.getCluster();
ClientConfig clientConfig = new ClientConfig();
clientConfig.setLoadBalancer(randomLB);
randomLB.init(cluster, clientConfig);
Member member = cluster.getLocalMember();
Member nextMember = randomLB.next();
assertEquals(member, nextMember);
factory.terminateAll();
}
use of com.hazelcast.client.config.ClientConfig in project hazelcast by hazelcast.
the class AbstractListenersOnReconnectTest method testClusterReconnectMultipleServersDueToHeartbeatSmartRouting.
@Test
public void testClusterReconnectMultipleServersDueToHeartbeatSmartRouting() {
factory.newInstances(null, 3);
ClientConfig clientConfig = getSmartClientConfig(4, 1);
client = factory.newHazelcastClient(clientConfig);
testListenersHeartbeatTimeoutToOwner();
}
Aggregations