Examples of NioServer


Examples of com.cloud.utils.nio.NioServer

            //launchAgent();

            // FIXME get rid of this approach of agent listening for boot strap commands from the management server

            // now listen for bootstrap request from the management server and launch agents
            _connection = new NioServer("VmmAgentShell", _listenerPort, 1, this);
            _connection.start();
            s_logger.info("SCVMM agent is listening on port " +_listenerPort + " for bootstrap command from management server");
            while(_connection.isRunning());
        } catch(final ConfigurationException e) {
            s_logger.error("Unable to start agent: " + e.getMessage());
View Full Code Here

Examples of com.cloud.utils.nio.NioServer

        _connectExecutor = new ThreadPoolExecutor(100, 500, 60l, TimeUnit.SECONDS,
                new LinkedBlockingQueue<Runnable>(), new NamedThreadFactory("AgentConnectTaskPool"));
        //allow core threads to time out even when there are no items in the queue
        _connectExecutor.allowCoreThreadTimeOut(true);

        _connection = new NioServer("AgentManager", _port, workers + 10, this);
        s_logger.info("Listening on " + _port + " with " + workers + " workers");

        value = configs.get(Config.DirectAgentPoolSize.key());
        int size = NumbersUtil.parseInt(value, 500);
        _directAgentExecutor = new ScheduledThreadPoolExecutor(size, new NamedThreadFactory("DirectAgent"));
View Full Code Here

Examples of pl.icedev.rpc.server.NIOServer

    }

    public static void main(String[] args) throws IOException, InterruptedException {
        WebServerInterface service = new WebServerInterface();
        JSONRPCHandler handler = new JSONRPCHandler(service, "test");
        NIOServer nios = new NIOServer("localhost", 6949, handler);

        System.out.println("Server running...");
        while (true) {
            nios.update(-1);
        }
    }
View Full Code Here

Examples of sc.nio.NioServer

      inputhandler = new ClientHandler();
      Thread t = new Thread(inputhandler);
      t.start();

      // Create an NioServer instance and start its thread
      nio = new NioServer(null, port, inputhandler);
      nio.setLogIO(true);
      t = new Thread(nio);
      t.start();

      Server.logger.info("Listening on port "
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.