Examples of ServerRegistry


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

                if (_mbean == null)
                {
                    return;
                }

                ServerRegistry serverRegistry = ApplicationRegistry.getServerRegistry(MBeanView.getServer());
                IStructuredSelection ss = (IStructuredSelection)_tableViewer.getSelection();
                if(!ss.isEmpty())
                {
                    //clear selected Notifications
                    serverRegistry.clearNotifications(_mbean, ss.toList());
                }
                else if(_notifications != null)
                {
                    //clear all the notifications, if there are any
                   
                    //check the user is certain of this clear-all operation
                    int response = ViewUtility.popupOkCancelConfirmationMessage(
                            "Clear Notifications", "Clear all Notifications for this MBean?");
                    if(response != SWT.OK)
                    {
                        return;
                    }
                   
                    synchronized(this)
                    {
                        List<NotificationObject> newList = new ArrayList<NotificationObject>();
                        newList.addAll(_notifications);
                        serverRegistry.clearNotifications(_mbean, newList);
                    }
                }
               
                refresh();
            }
View Full Code Here

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

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

    /**
     * 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

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

        {
            return;
        }
       
        String queueName = (String) table.getItem(selectionIndex).getData();
        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

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

        _clearButton.setLayoutData(gridData);
        _clearButton.addSelectionListener(new SelectionAdapter()
        {
            public void widgetSelected(SelectionEvent e)
            { 
                ServerRegistry serverRegistry = ApplicationRegistry.getServerRegistry(MBeanView.getServer());
                IStructuredSelection ss = (IStructuredSelection)_tableViewer.getSelection();
                if(!ss.isEmpty())
                {
                    //clear selected Notifications
                    serverRegistry.clearNotifications(null, ss.toList());
                }
                else if(_notifications != null)
                {
                    //clear all the notifications, if there are any
                   
                    //check the user is certain of this clear-all operation
                    int response = ViewUtility.popupOkCancelConfirmationMessage(
                            "Clear Notifications", "Clear all Notifications for this VirtualHost?");
                    if(response != SWT.OK)
                    {
                        return;
                    }
                   
                    synchronized(this)
                    {
                        serverRegistry.clearNotifications(null, _notifications);
                    }
                }

                refresh();
            }
View Full Code Here

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

     */
    protected void updateTableViewer()
    {
        String virtualhost = MBeanView.getVirtualHost();
       
        ServerRegistry serverRegistry = ApplicationRegistry.getServerRegistry(MBeanView.getServer());       
        List<NotificationObject> newList = serverRegistry.getNotifications(virtualhost);
       
        synchronized(this)
        {
            _notifications = newList;
            _tableViewer.setInput(_notifications);
View Full Code Here

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

            {
                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

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

        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

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

            return;
        }
       
        CompositeData bindingResult = (CompositeData) table.getItem(selectionIndex).getData();
        String queueName = (String) bindingResult.get(HDR_QUEUE_NAME);
        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

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

    }
   
    @Override
    public void refresh(ManagedBean mbean)
    {
        ServerRegistry serverRegistry = ApplicationRegistry.getServerRegistry(MBeanView.getServer());
        _queues = serverRegistry.getQueues(MBeanView.getVirtualHost());
        _exchanges = serverRegistry.getExchanges(MBeanView.getVirtualHost());

        _queueTableViewer.setInput(_queues);
        _exchangeTableViewer.setInput(_exchanges);
       
        layout();
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.