Examples of OioServerSocketChannelFactory


Examples of com.flipkart.phantom.netty.uds.OioServerSocketChannelFactory

     * Interface method implementation. Creates and returns a Netty ServerBootstrap instance
     * @see com.flipkart.phantom.runtime.impl.server.netty.AbstractNettyNetworkServer#createServerBootstrap()
     */
    protected Bootstrap createServerBootstrap() throws RuntimeException {
        Assert.notNull(this.socketFile, "Socket File should not be null");
        OioServerSocketChannelFactory serverSocketChannelFactory = new OioServerSocketChannelFactory(this.getServerExecutors(), this.getWorkerExecutors());
        serverSocketChannelFactory.setSocketFile(this.socketFile);
        return new ServerBootstrap(serverSocketChannelFactory);
    }
View Full Code Here

Examples of org.elasticsearch.common.netty.channel.socket.oio.OioServerSocketChannelFactory

    @Override protected void doStart() throws ElasticSearchException {
        this.serverOpenChannels = new OpenChannelsHandler();

        if (blockingServer) {
            serverBootstrap = new ServerBootstrap(new OioServerSocketChannelFactory(
                    Executors.newCachedThreadPool(daemonThreadFactory(settings, "memcached_server_boss")),
                    Executors.newCachedThreadPool(daemonThreadFactory(settings, "memcached_server_worker"))
            ));
        } else {
            serverBootstrap = new ServerBootstrap(new NioServerSocketChannelFactory(
View Full Code Here

Examples of org.elasticsearch.common.netty.channel.socket.oio.OioServerSocketChannelFactory

    @Override protected void doStart() throws ElasticSearchException {
        this.serverOpenChannels = new OpenChannelsHandler();

        if (blockingServer) {
            serverBootstrap = new ServerBootstrap(new OioServerSocketChannelFactory(
                    Executors.newCachedThreadPool(daemonThreadFactory(settings, "http_server_boss")),
                    Executors.newCachedThreadPool(daemonThreadFactory(settings, "http_server_worker"))
            ));
        } else {
            serverBootstrap = new ServerBootstrap(new NioServerSocketChannelFactory(
View Full Code Here

Examples of org.elasticsearch.common.netty.channel.socket.oio.OioServerSocketChannelFactory

            return;
        }

        serverOpenChannels = new OpenChannelsHandler();
        if (blockingServer) {
            serverBootstrap = new ServerBootstrap(new OioServerSocketChannelFactory(
                    Executors.newCachedThreadPool(daemonThreadFactory(settings, "transport_server_boss")),
                    Executors.newCachedThreadPool(daemonThreadFactory(settings, "transport_server_worker"))
            ));
        } else {
            serverBootstrap = new ServerBootstrap(new NioServerSocketChannelFactory(
View Full Code Here

Examples of org.jboss.netty.channel.socket.oio.OioServerSocketChannelFactory

   * Inits the.
   */
  private void initInternal()
  {
    _acceptor = null;
    _acceptor = new ServerBootstrap(new OioServerSocketChannelFactory(executor, executor));

    // ???do not allow multiple servers to bind on the same port
    _acceptor.setOption("reuseAddress", false);
    _acceptor.setOption("tcpNoDelay", true);
    _acceptor.setPipelineFactory(new ControllerPipelineFactory(this, _debug));
View Full Code Here

Examples of org.jboss.netty.channel.socket.oio.OioServerSocketChannelFactory

   
        Executor executor = Executors.newFixedThreadPool(200);

        // Configure the server.
        ServerBootstrap bootstrap = new ServerBootstrap(
                new OioServerSocketChannelFactory(
                    executor,
                    executor));

        HessianRPCServiceHandler factory =  new HessianRPCServiceHandler(executor);
        factory.addService("default", new ImmediateInvokeService(getServiceManagerServer(), ServiceManagerServer.class, factory));
View Full Code Here

Examples of org.jboss.netty.channel.socket.oio.OioServerSocketChannelFactory

    _proxies = proxies;
        Executor executor = Executors.newFixedThreadPool(200);

        // Configure the server.
        ServerBootstrap bootstrap = new ServerBootstrap(
                new OioServerSocketChannelFactory(
                    executor,
                    executor));

        HessianRPCServiceHandler factory =  new HessianRPCServiceHandler(executor);
        factory.addService("default", new ImmediateInvokeService(this, HubService.class, factory));
View Full Code Here

Examples of org.jboss.netty.channel.socket.oio.OioServerSocketChannelFactory

                                            Executors.newCachedThreadPool());
      break;
    }
    case OIO:
    {
      channelFactory = new OioServerSocketChannelFactory(Executors.newCachedThreadPool(),
                                                         Executors.newCachedThreadPool());
      break;
    }
    default: throw new RuntimeException("unsupported server type: " + serverType );
    }
View Full Code Here

Examples of org.jboss.netty.channel.socket.oio.OioServerSocketChannelFactory

         channelFactory = new NioServerSocketChannelFactory(bossExecutor, workerExecutor, threadsToUse);
      }
      else
      {
         channelFactory = new OioServerSocketChannelFactory(bossExecutor, workerExecutor);
      }

      bootstrap = new ServerBootstrap(channelFactory);

      final SSLContext context;
View Full Code Here

Examples of org.jboss.netty.channel.socket.oio.OioServerSocketChannelFactory

         channelFactory = new NioServerSocketChannelFactory(bossExecutor, workerExecutor, threadsToUse);
      }
      else
      {
         channelFactory = new OioServerSocketChannelFactory(bossExecutor, workerExecutor);
      }

      bootstrap = new ServerBootstrap(channelFactory);

      final SSLContext context;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.