Package org.apache.drill.exec.service

Examples of org.apache.drill.exec.service.ServiceEngine


  public Drillbit(DrillConfig config, RemoteServiceSet serviceSet) throws Exception {
    if(serviceSet != null){
      this.context = new BootStrapContext(config);
      this.manager = new WorkManager(context);
      this.coord = serviceSet.getCoordinator();
      this.engine = new ServiceEngine(manager.getBitComWorker(), manager.getUserWorker(), context);
      this.cache = serviceSet.getCache();
    }else{
      Runtime.getRuntime().addShutdownHook(new ShutdownThread(config));
      this.context = new BootStrapContext(config);
      this.manager = new WorkManager(context);
      this.coord = new ZKClusterCoordinator(config);
      this.engine = new ServiceEngine(manager.getBitComWorker(), manager.getUserWorker(), context);
      this.cache = new HazelCache(config);
    }
  }
View Full Code Here


  public Drillbit(DrillConfig config, RemoteServiceSet serviceSet) throws Exception {
    boolean allowPortHunting = serviceSet != null;
    boolean enableHttp = config.getBoolean(ExecConstants.HTTP_ENABLE);
    this.context = new BootStrapContext(config);
    this.manager = new WorkManager(context);
    this.engine = new ServiceEngine(manager.getControlMessageHandler(), manager.getUserWorker(), context, manager.getWorkBus(), manager.getDataHandler(), allowPortHunting);

    if(enableHttp) {
      this.embeddedJetty = new Server(config.getInt(ExecConstants.HTTP_PORT));
    } else {
      this.embeddedJetty = null;
View Full Code Here

  public Drillbit(DrillConfig config, RemoteServiceSet serviceSet) throws Exception {
    boolean allowPortHunting = serviceSet != null;
    boolean enableHttp = config.getBoolean(ExecConstants.HTTP_ENABLE);
    this.context = new BootStrapContext(config);
    this.manager = new WorkManager(context);
    this.engine = new ServiceEngine(manager.getControlMessageHandler(), manager.getUserWorker(), context, manager.getWorkBus(), manager.getDataHandler(), allowPortHunting);

    if(enableHttp) {
      this.embeddedJetty = new Server(config.getInt(ExecConstants.HTTP_PORT));
    } else {
      this.embeddedJetty = null;
View Full Code Here

TOP

Related Classes of org.apache.drill.exec.service.ServiceEngine

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.