use of org.infinispan.client.hotrod.test.FixedServerBalancing in project infinispan by infinispan.
the class ReplicationIndexTest method createClient.
protected RemoteCacheManager createClient(int i) {
HotRodServer server = server(i);
org.infinispan.client.hotrod.configuration.ConfigurationBuilder clientBuilder = HotRodClientTestingUtil.newRemoteConfigurationBuilder();
clientBuilder.addServer().host(server.getHost()).port(server.getPort()).marshaller(new ProtoStreamMarshaller()).balancingStrategy(() -> new FixedServerBalancing(server));
return new InternalRemoteCacheManager(clientBuilder.build());
}
use of org.infinispan.client.hotrod.test.FixedServerBalancing in project infinispan by infinispan.
the class StorageRoutingTest method createHotRodClientConfigurationBuilder.
@Override
protected org.infinispan.client.hotrod.configuration.ConfigurationBuilder createHotRodClientConfigurationBuilder(HotRodServer hotRodServer) {
org.infinispan.client.hotrod.configuration.ConfigurationBuilder hotRodClientConfigurationBuilder = super.createHotRodClientConfigurationBuilder(hotRodServer);
hotRodClientConfigurationBuilder.balancingStrategy(() -> new FixedServerBalancing(hotRodServer));
return hotRodClientConfigurationBuilder;
}
Aggregations