Examples of OioClientSocketChannelFactory


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

public class OioNioSocketStringEchoTest extends AbstractSocketStringEchoTest {

    @Override
    protected ChannelFactory newClientSocketChannelFactory(Executor executor) {
        return new OioClientSocketChannelFactory(executor);
    }
View Full Code Here

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

        String scheme = uri.getScheme() == null? "http" : uri.getScheme();

        // Configure the client.
        ClientBootstrap b = new ClientBootstrap(
                new HttpTunnelingClientSocketChannelFactory(
                        new OioClientSocketChannelFactory(Executors.newCachedThreadPool())));

        b.setPipelineFactory(new ChannelPipelineFactory() {
            public ChannelPipeline getPipeline() throws Exception {
                return Channels.pipeline(
                        new StringDecoder(),
View Full Code Here

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

         }

      }
      else
      {
         channelFactory = new OioClientSocketChannelFactory(virtualExecutor);
      }
      // if we are a servlet wrap the socketChannelFactory
      if (useServlet)
      {
         ClientSocketChannelFactory proxyChannelFactory = channelFactory;
View Full Code Here

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

    }

    @Override
    protected void doStart() throws ElasticsearchException {
        if (blockingClient) {
            clientBootstrap = new ClientBootstrap(new OioClientSocketChannelFactory(Executors.newCachedThreadPool(daemonThreadFactory(settings, "transport_client_worker"))));
        } else {
            clientBootstrap = new ClientBootstrap(new NioClientSocketChannelFactory(
                    Executors.newCachedThreadPool(daemonThreadFactory(settings, "transport_client_boss")),
                    bossCount,
                    new NioWorkerPool(Executors.newCachedThreadPool(daemonThreadFactory(settings, "transport_client_worker")), workerCount),
View Full Code Here

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

        } else {
            asyncHttpProviderConfig = new NettyAsyncHttpProviderConfig();
        }

        if (asyncHttpProviderConfig.getProperty(NettyAsyncHttpProviderConfig.USE_BLOCKING_IO) != null) {
            socketChannelFactory = new OioClientSocketChannelFactory(config.executorService());
        } else {
            ExecutorService e;
            Object o = asyncHttpProviderConfig.getProperty(NettyAsyncHttpProviderConfig.BOSS_EXECUTOR_SERVICE);
            if (o != null && ExecutorService.class.isAssignableFrom(o.getClass())) {
                e = ExecutorService.class.cast(o);
View Full Code Here

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

        this(logging, Executors.newCachedThreadPool());
    }

    public NettyNetworkClient(boolean logging, ExecutorService workerExecutor) {
        this.logLevel = logging ? InternalLogLevel.INFO : InternalLogLevel.DEBUG;
        this.channelFactory = new OioClientSocketChannelFactory(workerExecutor);
    }
View Full Code Here

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

public class OioNioSocketTest extends SocketTests {

  @Override
  protected ChannelFactory newClientSocketChannelFactory(Executor executor) {
     return new OioClientSocketChannelFactory(executor);
  }
View Full Code Here

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

public class OioOioSocketTest extends SocketTests {

  @Override
  protected ChannelFactory newClientSocketChannelFactory(Executor executor) {
     return new OioClientSocketChannelFactory(executor);
  }
View Full Code Here

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

      int port = 8099;
      String host = "localhost";
     
          // Configure the client.
          ClientBootstrap bootstrap = new ClientBootstrap(
                  new OioClientSocketChannelFactory(
                          Executors.newCachedThreadPool()));

          // Set up the event pipeline factory.
          bootstrap.setPipelineFactory(new IcapClientChannelPipeline());
View Full Code Here

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

                 ClientSocketChannelFactory.class);
        register(ctx,
                 new NioServerSocketChannelFactory(executor, executor),
                 ServerSocketChannelFactory.class);

        register(ctx, new OioClientSocketChannelFactory(executor));
        register(ctx, new OioServerSocketChannelFactory(executor, executor));
    }
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.