use of com.facebook.drift.transport.netty.server.DriftNettyServerTransportFactory in project presto by prestodb.
the class ThriftQueryRunner method startThriftServers.
private static List<DriftServer> startThriftServers(int thriftServers, boolean enableIndexJoin) {
List<DriftServer> servers = new ArrayList<>(thriftServers);
for (int i = 0; i < thriftServers; i++) {
ThriftTpchService service = enableIndexJoin ? new ThriftIndexedTpchService() : new ThriftTpchService();
DriftServer server = new DriftServer(new DriftNettyServerTransportFactory(new DriftNettyServerConfig()), CODEC_MANAGER, new NullMethodInvocationStatsFactory(), ImmutableSet.of(new DriftService(service)), ImmutableSet.of());
server.start();
servers.add(server);
}
return servers;
}
Aggregations