Package com.cloud.utils.nio

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


        _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

TOP

Related Classes of com.cloud.utils.nio.NioServer

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.