Package org.apache.qpid.management.ui.jmx

Examples of org.apache.qpid.management.ui.jmx.JMXServerRegistry


     * @throws Exception
     */
    private void createJMXServerConnection(ManagedServer server) throws Exception
    {
        // Currently Qpid Management Console only supports JMX MBeanServer
        JMXServerRegistry serverRegistry = new JMXServerRegistry(server);
       
        try
        {
          //determine the management API version of the server just connected to
            MBeanUtility.classifyManagementApiVersion(server, serverRegistry);
        }
        catch (Exception e)
        {
            //Exception classifying the server API, clean up the connection and rethrow
            serverRegistry.closeServerConnection();
            throw e;
        }
       
        //check that the console supports the API major version encountered, otherwise abort.
        ApiVersion serverAPI = serverRegistry.getManagementApiVersion();
       
        int serverMajor = serverAPI.getMajor();
        int supportedMajor = ApplicationRegistry.SUPPORTED_QPID_JMX_API_MAJOR_VERSION;
       
        if(serverMajor > supportedMajor)
        {
            serverRegistry.closeServerConnection();
            throw new ManagementConsoleException("The server management API version encountered is not supported"
                + " by this console release. Please check for an updated console release.");
        }

        //connection succeeded, add the ServerRegistry to the ApplicationRegistry
View Full Code Here


            }
           
            _virtualHostName = _selectedNode.getVirtualHost();
        }
       
        JMXServerRegistry serverRegistry = (JMXServerRegistry)ApplicationRegistry.getServerRegistry(_server);
        if(serverRegistry != null){
            _mbsc = serverRegistry.getServerConnection();
        }
    }
View Full Code Here

    }   

    // Refresh from the server registry
    public void refresh()
    {
        JMXServerRegistry serverRegistry = (JMXServerRegistry)ApplicationRegistry.getServerRegistry(_mbean);
        ManagedAttributeModel attributesList = serverRegistry.getAttributeModel(_mbean);
        _tableViewer.setInput(attributesList);
    }
View Full Code Here

     * @throws Exception
     */
    private void createJMXServerConnection(ManagedServer server) throws Exception
    {
        // Currently Qpid Management Console only supports JMX MBeanServer
        ServerRegistry serverRegistry = new JMXServerRegistry(server);
        ApplicationRegistry.addServer(server, serverRegistry);
    }
View Full Code Here

     * @throws Exception
     */
    private void createJMXServerConnection(ManagedServer server) throws Exception
    {
        // Currently Qpid Management Console only supports JMX MBeanServer
        JMXServerRegistry serverRegistry = new JMXServerRegistry(server);
       
        try
        {
          //determine the management API version of the server just connected to
            MBeanUtility.classifyManagementApiVersion(server, serverRegistry);
        }
        catch (Exception e)
        {
            //Exception classifying the server API, clean up the connection and rethrow
            serverRegistry.closeServerConnection();
            throw e;
        }
       
        //check that the console supports the API major version encountered, otherwise abort.
        ApiVersion serverAPI = serverRegistry.getManagementApiVersion();
       
        int serverMajor = serverAPI.getMajor();
        int supportedMajor = ApplicationRegistry.SUPPORTED_QPID_JMX_API_MAJOR_VERSION;
       
        if(serverMajor > supportedMajor)
        {
            serverRegistry.closeServerConnection();
            throw new ManagementConsoleException("The server management API version encountered is not supported"
                + " by this console release. Please check for an updated console release.");
        }

        //connection succeeded, add the ServerRegistry to the ApplicationRegistry
View Full Code Here

                _server = (ManagedServer)parent.getManagedObject();
           
            _virtualHostName = _selectedNode.getVirtualHost();
        }
       
        JMXServerRegistry serverRegistry = (JMXServerRegistry)ApplicationRegistry.getServerRegistry(_server);
        if(serverRegistry != null){
            _mbsc = serverRegistry.getServerConnection();
        }
    }
View Full Code Here

     * @throws Exception
     */
    private void createRMIServerConnection(ManagedServer server) throws Exception
    {
        // Currently Qpid Management Console only supports JMX MBeanServer
        ServerRegistry serverRegistry = new JMXServerRegistry(server);
        ApplicationRegistry.addServer(server, serverRegistry);
    }
View Full Code Here

    }   

    // Refresh from the server registry
    public void refresh()
    {
        JMXServerRegistry serverRegistry = (JMXServerRegistry)ApplicationRegistry.getServerRegistry(_mbean);
        ManagedAttributeModel attributesList = serverRegistry.getAttributeModel(_mbean);
        _tableViewer.setInput(attributesList);
    }
View Full Code Here

     * @throws Exception
     */
    private void createJMXServerConnection(ManagedServer server) throws Exception
    {
        // Currently Qpid Management Console only supports JMX MBeanServer
        JMXServerRegistry serverRegistry = new JMXServerRegistry(server);
       
        try
        {
          //determine the management API version of the server just connected to
            MBeanUtility.classifyManagementApiVersion(server, serverRegistry);
        }
        catch (Exception e)
        {
            //Exception classifying the server API, clean up the connection and rethrow
            serverRegistry.closeServerConnection();
            throw e;
        }
       
        //check that the console supports the API major version encountered, otherwise abort.
        ApiVersion serverAPI = serverRegistry.getManagementApiVersion();
       
        int serverMajor = serverAPI.getMajor();
        int supportedMajor = ApplicationRegistry.SUPPORTED_QPID_JMX_API_MAJOR_VERSION;
       
        if(serverMajor > supportedMajor)
        {
            serverRegistry.closeServerConnection();
            throw new ManagementConsoleException("The server management API version encountered is not supported"
                + " by this console release. Please check for an updated console release.");
        }

        //connection succeeded, add the ServerRegistry to the ApplicationRegistry
View Full Code Here

                _server = (ManagedServer)parent.getManagedObject();
           
            _virtualHostName = _selectedNode.getVirtualHost();
        }
       
        JMXServerRegistry serverRegistry = (JMXServerRegistry)ApplicationRegistry.getServerRegistry(_server);
        if(serverRegistry != null){
            _mbsc = serverRegistry.getServerConnection();
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.qpid.management.ui.jmx.JMXServerRegistry

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.