Package org.apache.thrift.server.TThreadedSelectorServer

Examples of org.apache.thrift.server.TThreadedSelectorServer.Args


import org.apache.thrift.server.TThreadedSelectorServer.Args;
import org.apache.thrift.transport.TNonblockingServerSocket;

public class TestThreadedSelectorServer extends TestNonblockingServer {
  protected TServer getServer(TProcessor processor, TNonblockingServerSocket socket, TProtocolFactory protoFactory) {
    return new TThreadedSelectorServer(new Args(socket).processor(processor).protocolFactory(protoFactory));
  }
View Full Code Here


    log.debug("Thrift server started in {}", addr);

    // TODO default selectorThreads is 2. Test if this is enough under load,
    // or we would need more selector threads.
    Args args = new Args(transport);
    args.executorService(executorService.getExecutor())
        .processor(processor);

    server = new NonBlockingTThreadedSelectorServer(args);
    server.serve();
  }
View Full Code Here

TOP

Related Classes of org.apache.thrift.server.TThreadedSelectorServer.Args

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.