Package org.apache.drill.exec.rpc.bit

Examples of org.apache.drill.exec.rpc.bit.ListenerPool


  @Test
  public void testBasicConnectionAndHandshake() throws Exception{
    int port = 1234;
    BootStrapContext c = new BootStrapContext(DrillConfig.create());
    final BitComTestHandler handler = new BitComTestHandler();
    final ListenerPool listeners = new ListenerPool(2);
    ConnectionManagerRegistry registry = new ConnectionManagerRegistry(handler, c, listeners);
    BitServer server = new BitServer(handler, c, registry, listeners);
    port = server.bind(port);
    DrillbitEndpoint ep = DrillbitEndpoint.newBuilder().setAddress("localhost").setBitPort(port).build();
    registry.setEndpoint(ep);
View Full Code Here

TOP

Related Classes of org.apache.drill.exec.rpc.bit.ListenerPool

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.