use of com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPoolingContainer in project atlasdb by palantir.
the class CassandraService method addPool.
public void addPool(CassandraServer server) {
int currentPoolNumber = cassandraHosts.indexOf(server) + 1;
addPoolInternal(server, new CassandraClientPoolingContainer(metricsManager, server, config, currentPoolNumber, poolMetrics));
}
use of com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPoolingContainer in project atlasdb by palantir.
the class WeightedServersTest method createMockClientPoolingContainerWithUtilization.
private static CassandraClientPoolingContainer createMockClientPoolingContainerWithUtilization(int utilization) {
CassandraClientPoolingContainer mock = Mockito.mock(CassandraClientPoolingContainer.class);
Mockito.when(mock.getOpenRequests()).thenReturn(utilization);
return mock;
}
Aggregations