Package org.rhq.enterprise.communications.command.server

Examples of org.rhq.enterprise.communications.command.server.CommandProcessor


        // register our connector in our MBeanServer, add our command processor as its own invocation handler to it and start it
        // after this, our connector will be active and a server socket is accepting requests
        m_mbs.registerMBean(m_connector, OBJECTNAME_CONNECTOR);
        m_connector.create();

        CommandProcessor handler = new CommandProcessor();

        for (CommandListener listener : m_commandListeners) {
            handler.addCommandListener(listener);
        }

        CommandAuthenticator commandAuthenticator = m_configuration.getCommandAuthenticator();
        if (commandAuthenticator != null) {
            commandAuthenticator.setServiceContainer(this);
            handler.setCommandAuthenticator(commandAuthenticator);
        }
        m_connector.addInvocationHandler(SUBSYSTEM, handler);
        m_connector.start();

        // create and register our metric MBean so we can emit statistics
View Full Code Here

TOP

Related Classes of org.rhq.enterprise.communications.command.server.CommandProcessor

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.