Package org.jboss.netty.util

Examples of org.jboss.netty.util.HashedWheelTimer


    if (ConnectionFactory.channelFactory == null) {
      ConnectionFactory.channelFactory = new NioClientSocketChannelFactory(Executors.newCachedThreadPool(),
          Executors.newCachedThreadPool(), AppContext.getBasicConfiguration().getMaxIOThreads());
    }
    if (ConnectionFactory.timer == null) {
      ConnectionFactory.timer = new HashedWheelTimer();
    }
  }
View Full Code Here


    private static final int maxFrameSize = 1024 * 1024 * 10;
   
    public RemoteSyncPipelineFactory(RemoteSyncManager syncManager) {
        super();
        this.syncManager = syncManager;
        this.timer = new HashedWheelTimer();
    }
View Full Code Here

                              RPCService rpcService) {
        super();
        this.syncManager = syncManager;
        this.rpcService = rpcService;

        this.timer = new HashedWheelTimer();
    }
View Full Code Here

    protected Timer timer;
   
    public BootstrapPipelineFactory(Bootstrap bootstrap) {
        super();
        this.bootstrap = bootstrap;
        this.timer = new HashedWheelTimer();
    }
View Full Code Here

    public OpenflowPipelineFactory(Controller controller,
                                   ThreadPoolExecutor pipelineExecutor) {
        super();
        this.controller = controller;
        this.pipelineExecutor = pipelineExecutor;
        this.timer = new HashedWheelTimer();
        this.idleHandler = new IdleStateHandler(timer, 20, 25, 0);
        this.readTimeoutHandler = new ReadTimeoutHandler(timer, 30);
    }
View Full Code Here

        this.port = port;
    }

    public void run() {
        // Initialize the timer that schedules subsequent reconnection attempts.
        final Timer timer = new HashedWheelTimer();

        // Configure the client.
        final ClientBootstrap bootstrap = new ClientBootstrap(
                new NioClientSocketChannelFactory(
                        Executors.newCachedThreadPool(),
View Full Code Here

    // Now we swap the timer in client with our taskTimer which helps in making
    // the mainGet request during the period of wait for probe, in which case
    // the code path for the alreadyNSREd region will kick in.
    FakeTaskTimer taskTimer = new FakeTaskTimer();
    HashedWheelTimer originalTimer = Whitebox.getInternalState(client,
                                                               "timer");
    Whitebox.setInternalState(client, "timer", taskTimer);


    // Code for execution of the test start the execution of triggerGet, this
View Full Code Here

    final ArrayList<KeyValue> row = new ArrayList<KeyValue>(1);
    row.add(KV);

    // The Timers which will be swapped to simulate the pause for probe RPC
    final FakeTaskTimer taskTimer = new FakeTaskTimer();
    final HashedWheelTimer originalTimer = Whitebox.getInternalState(client,
                                                                     "timer");

    // Always this region client will be always returns true.
    when(regionclient.isAlive()).thenReturn(true);
View Full Code Here

    final ChannelFactory channelFactory = new NioClientSocketChannelFactory(
        Executors.newCachedThreadPool(),
        Executors.newCachedThreadPool());

    // Timer
    timer = new HashedWheelTimer();

    // Create bootstrap
    bootstrap = new ClientBootstrap(channelFactory);

    // Set up pipeline factory.
View Full Code Here

    // Set up channel factory
    final ChannelFactory channelFactory = new NioDatagramChannelFactory(
        Executors.newCachedThreadPool());

    // Timer
    timer = new HashedWheelTimer();

    // Create bootstrap
    bootstrap = new ConnectionlessBootstrap(channelFactory);

    // Set up pipeline factory.
View Full Code Here

TOP

Related Classes of org.jboss.netty.util.HashedWheelTimer

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.