use of com.facebook.buck.distributed.DistBuildConfig in project buck by facebook.
the class DistBuildFactory method newFrontendService.
public static FrontendService newFrontendService(CommandRunnerParams params) {
DistBuildConfig config = new DistBuildConfig(params.getBuckConfig());
ClientSideSlb slb = config.getFrontendConfig().createClientSideSlb(params.getClock(), params.getBuckEventBus(), new CommandThreadFactory("StampedeNetworkThreadPool", SLB_THREAD_PRIORITY));
OkHttpClient client = config.createOkHttpClient();
return new FrontendService(ThriftOverHttpServiceConfig.of(new LoadBalancedService(slb, client, params.getBuckEventBus())));
}
Aggregations