Package org.apache.drill.exec.rpc

Examples of org.apache.drill.exec.rpc.NamedThreadFactory


  private final BitCom bitCom;
  private final DrillConfig config;
  boolean useIP = false;
 
  public ServiceEngine(BitComHandler bitComWorker, UserWorker userWorker, BootStrapContext context){
    this.userServer = new UserServer(context.getAllocator().getUnderlyingAllocator(), new NioEventLoopGroup(1, new NamedThreadFactory("UserServer-")), userWorker);
    this.bitCom = new BitComImpl(context, bitComWorker);
    this.config = context.getConfig();
  }
View Full Code Here


  private final BufferAllocator allocator;
 
  public BootStrapContext(DrillConfig config) {
    super();
    this.config = config;
    this.loop = new NioEventLoopGroup(1, new NamedThreadFactory("BitServer-"));
    this.metrics = new MetricRegistry(config.getString(ExecConstants.METRICS_CONTEXT_NAME));
    this.allocator = BufferAllocator.getAllocator(config);
  }
View Full Code Here

  public void start(DrillbitEndpoint endpoint, DistributedCache cache, Controller controller,
      DataConnectionCreator data, ClusterCoordinator coord, PStoreProvider provider) {
    this.dContext = new DrillbitContext(endpoint, bContext, coord, controller, data, cache, workBus, provider);
    // executor = Executors.newFixedThreadPool(dContext.getConfig().getInt(ExecConstants.EXECUTOR_THREADS)
    executor = Executors.newCachedThreadPool(new NamedThreadFactory("WorkManager-"));
    eventThread.start();
    dContext.getMetrics().register(
        MetricRegistry.name("drill.exec.work.running_fragments." + dContext.getEndpoint().getUserPort()),
        new Gauge<Integer>() {
          @Override
View Full Code Here

  public void start(DrillbitEndpoint endpoint, Controller controller,
      DataConnectionCreator data, ClusterCoordinator coord, PStoreProvider provider) {
    this.dContext = new DrillbitContext(endpoint, bContext, coord, controller, data, workBus, provider);
    // executor = Executors.newFixedThreadPool(dContext.getConfig().getInt(ExecConstants.EXECUTOR_THREADS)
    executor = Executors.newCachedThreadPool(new NamedThreadFactory("WorkManager-"));
    eventThread.start();
    dContext.getMetrics().register(
        MetricRegistry.name("drill.exec.work.running_fragments." + dContext.getEndpoint().getUserPort()),
        new Gauge<Integer>() {
          @Override
View Full Code Here

TOP

Related Classes of org.apache.drill.exec.rpc.NamedThreadFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.