Package org.jboss.netty.handler.execution

Examples of org.jboss.netty.handler.execution.MemoryAwareThreadPoolExecutor$NewThreadRunsPolicy


  }

  public NettyServer(InetSocketAddress addr, ChannelFactory channelFactory,
      Configuration conf) {
    this(addr, channelFactory, new ExecutionHandler(
        new MemoryAwareThreadPoolExecutor(128, 1024 * 1024 * 32,
            1024 * 1024 * 32)), conf);
  }
View Full Code Here


   */
  public StrestServerPipelineFactory(StrestRouter router, SSLContext sslContext) {
    this.router = router;
    this.sslContext = sslContext;
    this.handler = new ExecutionHandler(
               new MemoryAwareThreadPoolExecutor(
                   router.getServer().getConfig().getInteger("threads.worker", 16), 1048576, 1048576)
      );
  }
View Full Code Here

    boolean useExecutionHandler =
        GiraphConstants.NETTY_SERVER_USE_EXECUTION_HANDLER.get(conf);
    if (useExecutionHandler) {
      int executionThreads = conf.getNettyServerExecutionThreads();
      executionHandler = new ExecutionHandler(
          new MemoryAwareThreadPoolExecutor(
              executionThreads, 1048576, 1048576, 1, TimeUnit.HOURS,
              new ThreadFactoryBuilder().setNameFormat("netty-server-exec-%d").
                  build()));
      if (LOG.isInfoEnabled()) {
        LOG.info("NettyServer: Using execution handler with " +
View Full Code Here

        NETTY_CLIENT_EXECUTION_AFTER_HANDLER.get(conf);
    boolean useExecutionHandler = NETTY_CLIENT_USE_EXECUTION_HANDLER.get(conf);
    if (useExecutionHandler) {
      int executionThreads = NETTY_CLIENT_EXECUTION_THREADS.get(conf);
      executionHandler = new ExecutionHandler(
          new MemoryAwareThreadPoolExecutor(
              executionThreads, 1048576, 1048576, 1, TimeUnit.HOURS,
              new ThreadFactoryBuilder().setNameFormat("netty-client-exec-%d")
                  .build()));
      if (LOG.isInfoEnabled()) {
        LOG.info("NettyClient: Using execution handler with " +
View Full Code Here

TOP

Related Classes of org.jboss.netty.handler.execution.MemoryAwareThreadPoolExecutor$NewThreadRunsPolicy

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.