use of org.apache.druid.client.selector.ConnectionCountServerSelectorStrategy in project druid by druid-io.
the class DirectDruidClientTest method setup.
@Before
public void setup() {
httpClient = EasyMock.createMock(HttpClient.class);
serverSelector = new ServerSelector(dataSegment, new HighestPriorityTierSelectorStrategy(new ConnectionCountServerSelectorStrategy()));
client = new DirectDruidClient(new ReflectionQueryToolChestWarehouse(), QueryRunnerTestHelper.NOOP_QUERYWATCHER, new DefaultObjectMapper(), httpClient, "http", hostName, new NoopServiceEmitter());
queryableDruidServer = new QueryableDruidServer(new DruidServer("test1", "localhost", null, 0, ServerType.HISTORICAL, DruidServer.DEFAULT_TIER, 0), client);
serverSelector.addServerAndUpdateSegment(queryableDruidServer, serverSelector.getSegment());
}
Aggregations