Package org.apache.qpid.management.ui

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


        for(int index = 0; index < selectedIndices.length ; index++)
        {
            List<Object> queueEntry = (List<Object>) getTable().getItem(selectedIndices[index]).getData();
            String queueName = (String) queueEntry.get(0);
           
            ManagedBean queueMBean = getServerRegistry().getQueue(queueName, getVirtualHost());
           
            //check queue had not already been unregistered before trying to add it
            if(queueMBean != null)
            {
                selectedMBeans.add(queueMBean);
            }
            else
            {
                allSucceded = false;
            }
        }

        if(allSucceded)
        {
            //ensure the status bar is cleared of any previous failures added by the below
            ViewUtility.clearStatusBar();
        }
        else
        {
            ViewUtility.operationFailedStatusBarMessage("A selected queue could not be added as it was no longer registered");
            refresh();
        }
       

        IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
        NavigationView view = (NavigationView)window.getActivePage().findView(NavigationView.ID);
       
        ManagedBean bean = null;
        try
        {
            for(ManagedBean mbean: selectedMBeans)
            {
                bean = mbean;
View Full Code Here


        if (selectionIndex == -1)
        {
            return;
        }
       
        ManagedBean selectedMBean;

        //the entries are created from an List<Object> with the attribute values (name first)
        List<Object> queueEntry = (List<Object>) getTable().getItem(selectionIndex).getData();
        String queueName = (String) queueEntry.get(0);
        selectedMBean = getServerRegistry().getQueue(queueName, getVirtualHost());
View Full Code Here

        {
            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

        }
       
        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

       
        final ArrayList<ManagedBean> selectedMBeans = new ArrayList<ManagedBean>();
       
        for(int index = 0; index < selectedIndices.length ; index++)
        {
            ManagedBean selectedMBean = (ManagedBean)table.getItem(selectedIndices[index]).getData();
            selectedMBeans.add(selectedMBean);
        }
       
       
        final Shell shell = ViewUtility.createModalDialogShell(parent, windowTitle);
View Full Code Here

        if (selectionIndex == -1)
        {
            return;
        }
       
        ManagedBean selectedMBean = (ManagedBean) table.getItem(selectionIndex).getData();

        IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
        MBeanView view = (MBeanView) window.getActivePage().findView(MBeanView.ID);
        try
        {
View Full Code Here

        }

        @Override
        public int compare(Viewer viewer, Object e1, Object e2)
        {
            ManagedBean mbean1 = (ManagedBean ) e1;
            ManagedBean mbean2 = (ManagedBean ) e2;
           
            int comparison = 0;
            switch(column)
            {
                case 0:
                    comparison = mbean1.getName().compareTo(mbean2.getName());
                    break;
                default:
                    comparison = 0;
            }
            // If descending order, flip the direction
View Full Code Here

                    if (nameEnd != -1)
                    {
                        name = name.substring(0, nameEnd);                   
                    }                 
                    // pass the ManagedBean to the navigation view to be added
                    ManagedBean mbean = _objectsMap.get(name);
                    IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
                    NavigationView view = (NavigationView)window.getActivePage().findView(NavigationView.ID);
                    try
                    {
                        view.addManagedBean(mbean);
View Full Code Here

       
        String[] items = new String[list.size()];
        int i = 0;
        for (AttributeData data : list)
        {
            ManagedBean mbean = _queueDepthMap.get(data);
            items[i++] = mbean.getName() + " (" + getQueueDepthString(mbean, data) + ")";
        }
        getListWidget().setItems(items);
    }
View Full Code Here

       
        String[] items = new String[list.size()];
        int i = 0;
        for (AttributeData data : list)
        {
            ManagedBean mbean = _queueConsumerCountMap.get(data);
            String value = data.getValue().toString();
            items[i++] = mbean.getName() + " (" + value + ")";
        }
        getListWidget().setItems(items);
    }
View Full Code Here

TOP

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

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.