Package org.apache.qpid.management.ui

Examples of org.apache.qpid.management.ui.ServerRegistry


            return;
        }
       
        String type = _typesCombo.getItem(typeIndex);
        String name = _notificationNameCombo.getItem(nameIndex);
        ServerRegistry serverRegistry = ApplicationRegistry.getServerRegistry(_mbean);
       
        if (serverRegistry.hasSubscribedForNotifications(_mbean, name, type))
        {
            _subscribeButton.setEnabled(false);
            _unsubscribeButton.setEnabled(true);
        }
        else
View Full Code Here


    /**
     * Updates the table with new notifications received from mbean server for the selected mbean
     */
    protected void updateTableViewer()
    {
        ServerRegistry serverRegistry = ApplicationRegistry.getServerRegistry(_mbean);       
        List<NotificationObject> newList = serverRegistry.getNotifications(_mbean);
        synchronized(this)
        {
            _notifications = newList;
            _tableViewer.setInput(_notifications);
        }
View Full Code Here

        if(queueName == null)
        {
            return;
        }
       
        ServerRegistry serverRegistry = ApplicationRegistry.getServerRegistry(_mbean);
        ManagedBean selectedMBean = serverRegistry.getQueue(queueName, _mbean.getVirtualHostName());

        if(selectedMBean == null)
        {
            ViewUtility.popupErrorMessage("Error", "Unable to retrieve the selected MBean to open it");
            return;
View Full Code Here

            {
                showMBean(_mbean);
            }
            else if(NODE_TYPE_SERVER.equals(mbeanType))
            {
                ServerRegistry serverReg = ApplicationRegistry.getServerRegistry(_server);
               
                //check the server is connected
                if(serverReg != null)
                {
                    //post a message if the server supports a newer API version.
                    ApiVersion serverAPI = serverReg.getManagementApiVersion();
                    int supportedMajor = ApplicationRegistry.SUPPORTED_QPID_JMX_API_MAJOR_VERSION;
                    int supportedMinor = ApplicationRegistry.SUPPORTED_QPID_JMX_API_MINOR_VERSION;
                   
                    if(serverAPI.greaterThan(supportedMajor, supportedMinor))
                    {
View Full Code Here

                {   
                    if (_mbean == null)
                        return;
                   
                    IStructuredSelection ss = (IStructuredSelection)_tableViewer.getSelection();
                    ServerRegistry serverRegistry = ApplicationRegistry.getServerRegistry(_mbean);
                    serverRegistry.clearNotifications(_mbean, ss.toList());
                    refresh();
                }
            });
       
        // Add Refresh Button
View Full Code Here

            return;
        }
       
        String type = typesCombo.getItem(typeIndex);
        String name = notificationNameCombo.getItem(nameIndex);
        ServerRegistry serverRegistry = ApplicationRegistry.getServerRegistry(_mbean);
       
        if (serverRegistry.hasSubscribedForNotifications(_mbean, name, type))
        {
            _subscribeButton.setEnabled(false);
            _unsubscribeButton.setEnabled(true);
        }
        else
View Full Code Here

    /**
     * Updates the table with new notifications received from mbean server for the selected mbean
     */
    protected void updateTableViewer()
    {
        ServerRegistry serverRegistry = ApplicationRegistry.getServerRegistry(_mbean);       
        List<NotificationObject> newList = serverRegistry.getNotifications(_mbean);
        if (newList == null)
            return;
       
        _notifications = newList;
        _tableViewer.setInput(_notifications);
View Full Code Here

    protected void populateList() throws Exception
    {
        // map should be cleared before populating it with new values
        getMBeansMap().clear();
       
        ServerRegistry serverRegistry = ApplicationRegistry.getServerRegistry(MBeanView.getServer());
        java.util.List<ManagedBean> list = serverRegistry.getConnections(MBeanView.getVirtualHost());
        getListWidget().setItems(getItems(list))
    }
View Full Code Here

            {
                public void widgetSelected(SelectionEvent e)
                { 
                    //TODO : Get selected rows and clear those
                    IStructuredSelection ss = (IStructuredSelection)_tableViewer.getSelection();
                    ServerRegistry serverRegistry = ApplicationRegistry.getServerRegistry(MBeanView.getServer());
                    serverRegistry.clearNotifications(null, ss.toList());
                    refresh();
                }
            });
       
        // Add Refresh Button
View Full Code Here

    /**
     * Updates the table with new notifications received from mbean server for all mbeans
     */
    protected void updateTableViewer()
    {
        ServerRegistry serverRegistry = ApplicationRegistry.getServerRegistry(MBeanView.getServer());       
        List<NotificationObject> newList = serverRegistry.getNotifications(null);
        if (newList == null)
            return;
       
        _notifications = newList;
        _tableViewer.setInput(_notifications);
View Full Code Here

TOP

Related Classes of org.apache.qpid.management.ui.ServerRegistry

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.