use of com.palantir.atlasdb.qos.FakeQosClient in project atlasdb by palantir.
the class CassandraServiceTest method clientPoolWith.
private CassandraService clientPoolWith(ImmutableSet<InetSocketAddress> servers, ImmutableSet<InetSocketAddress> serversInPool) {
config = ImmutableCassandraKeyValueServiceConfig.builder().replicationFactor(3).addServers(servers.toArray(new InetSocketAddress[0])).build();
blacklist = new Blacklist(config);
CassandraService service = new CassandraService(config, blacklist, new FakeQosClient());
service.cacheInitialCassandraHosts();
serversInPool.forEach(service::addPool);
return service;
}
Aggregations