Search in sources :

Example 1 with DistBuildConfig

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())));
}
Also used : ClientSideSlb(com.facebook.buck.slb.ClientSideSlb) OkHttpClient(okhttp3.OkHttpClient) CommandThreadFactory(com.facebook.buck.log.CommandThreadFactory) FrontendService(com.facebook.buck.distributed.FrontendService) LoadBalancedService(com.facebook.buck.slb.LoadBalancedService) DistBuildConfig(com.facebook.buck.distributed.DistBuildConfig)

Aggregations

DistBuildConfig (com.facebook.buck.distributed.DistBuildConfig)1 FrontendService (com.facebook.buck.distributed.FrontendService)1 CommandThreadFactory (com.facebook.buck.log.CommandThreadFactory)1 ClientSideSlb (com.facebook.buck.slb.ClientSideSlb)1 LoadBalancedService (com.facebook.buck.slb.LoadBalancedService)1 OkHttpClient (okhttp3.OkHttpClient)1