Examples of InfoRequiredException


Examples of org.apache.qpid.management.ui.exceptions.InfoRequiredException

    {
        TreeObject selectedNode = getSelectedServerNode();
        ManagedServer managedServer = (ManagedServer) selectedNode.getManagedObject();
        if (_managedServerMap.containsKey(managedServer))
        {
            throw new InfoRequiredException("Server " + managedServer.getName() + " is already connected");
        }

        managedServer.setUser(user);
        managedServer.setPassword(password);
        createJMXServerConnection(managedServer);
View Full Code Here

Examples of org.apache.qpid.management.ui.exceptions.InfoRequiredException

    {
        IStructuredSelection ss = (IStructuredSelection) _treeViewer.getSelection();
        TreeObject selectedNode = (TreeObject) ss.getFirstElement();
        if (ss.isEmpty() || (selectedNode == null) || (!selectedNode.getType().equals(NODE_TYPE_SERVER)))
        {
            throw new InfoRequiredException("Please select the server");
        }

        return selectedNode;
    }
View Full Code Here

Examples of org.apache.qpid.management.ui.exceptions.InfoRequiredException

     * "EditAttribute" button from Attribute tab.
     */
    public void editAttribute() throws Exception
    {
       if (_mbean == null)
           throw new InfoRequiredException("Please select the managed object and then attribute to be edited");
      
       String name = (_mbean.getName() != null) ? _mbean.getName() : _mbean.getType();
       ServerRegistry serverRegistry = ApplicationRegistry.getServerRegistry(_mbean);
       if (serverRegistry.getAttributeModel(_mbean).getCount() == 0)
       {
           throw new InfoRequiredException("There are no attributes to be edited for " + name);
       }
      
       TabFolder tabFolder = tabFolderMap.get(_mbean.getType());
       int index = tabFolder.getSelectionIndex();
       if (index != 0)
       {
           tabFolder.setSelection(0);
           throw new InfoRequiredException("Please select the attribute to be edited");
       }
      
       TabItem tab = tabFolder.getItem(0);
       AttributesTabControl tabControl = (AttributesTabControl)tab.getData(CONTROLLER);
       AttributeData attribute = tabControl.getSelectionAttribute();
       if (attribute == null)
           throw new InfoRequiredException("Please select the attribute to be edited");
      
       tabControl.createDetailsPopup(attribute);
    }
View Full Code Here

Examples of org.apache.qpid.management.ui.exceptions.InfoRequiredException

    {
        TreeObject selectedNode = getSelectedServerNode();
        ManagedServer managedServer = (ManagedServer) selectedNode.getManagedObject();
        if (_managedServerMap.containsKey(managedServer))
        {
            throw new InfoRequiredException("Server " + managedServer.getName() + " is already connected");
        }

        managedServer.setUser(user);
        managedServer.setPassword(password);
        createJMXServerConnection(managedServer);
View Full Code Here

Examples of org.apache.qpid.management.ui.exceptions.InfoRequiredException

    {
        IStructuredSelection ss = (IStructuredSelection) _treeViewer.getSelection();
        TreeObject selectedNode = (TreeObject) ss.getFirstElement();
        if (ss.isEmpty() || (selectedNode == null) || (!selectedNode.getType().equals(NODE_TYPE_SERVER)))
        {
            throw new InfoRequiredException("Please select the server");
        }

        return selectedNode;
    }
View Full Code Here

Examples of org.apache.qpid.management.ui.exceptions.InfoRequiredException

     * "EditAttribute" button from Attribute tab.
     */
    public void editAttribute() throws Exception
    {
       if (_mbean == null)
           throw new InfoRequiredException("Please select the managed object and then attribute to be edited");
      
       String name = (_mbean.getName() != null) ? _mbean.getName() : _mbean.getType();
       ServerRegistry serverRegistry = ApplicationRegistry.getServerRegistry(_mbean);
       if (serverRegistry.getAttributeModel(_mbean).getCount() == 0)
       {
           throw new InfoRequiredException("There are no attributes to be edited for " + name);
       }
      
       TabFolder tabFolder = tabFolderMap.get(_mbean.getType());
       int index = tabFolder.getSelectionIndex();
       if (index != 0)
       {
           tabFolder.setSelection(0);
           throw new InfoRequiredException("Please select the attribute to be edited");
       }
      
       TabItem tab = tabFolder.getItem(0);
       AttributesTabControl tabControl = (AttributesTabControl)tab.getData(CONTROLLER);
       AttributeData attribute = tabControl.getSelectionAttribute();
       if (attribute == null)
           throw new InfoRequiredException("Please select the attribute to be edited");
      
       tabControl.createDetailsPopup(attribute);
    }
View Full Code Here

Examples of org.apache.qpid.management.ui.exceptions.InfoRequiredException

    {
        TreeObject selectedNode = getSelectedServerNode();
        ManagedServer managedServer = (ManagedServer) selectedNode.getManagedObject();
        if (_managedServerMap.containsKey(managedServer))
        {
            throw new InfoRequiredException("Server " + managedServer.getName() + " is already connected");
        }

        managedServer.setUser(user);
        managedServer.setPassword(password);
        createJMXServerConnection(managedServer);
View Full Code Here

Examples of org.apache.qpid.management.ui.exceptions.InfoRequiredException

    {
        IStructuredSelection ss = (IStructuredSelection) _treeViewer.getSelection();
        TreeObject selectedNode = (TreeObject) ss.getFirstElement();
        if (ss.isEmpty() || (selectedNode == null) || (!selectedNode.getType().equals(NODE_TYPE_SERVER)))
        {
            throw new InfoRequiredException("Please select the server");
        }

        return selectedNode;
    }
View Full Code Here

Examples of org.apache.qpid.management.ui.exceptions.InfoRequiredException

            managedServer.setName(serverAddress);
            createRMIServerConnection(managedServer);
        }
        else
        {
            throw new InfoRequiredException(transportProtocol + " transport is not supported");
        }

        // Server connection is successful. Now add the server in the tree
        TreeObject serverNode = new TreeObject(serverAddress, NODE_TYPE_SERVER);
        serverNode.setManagedObject(managedServer);
View Full Code Here

Examples of org.apache.qpid.management.ui.exceptions.InfoRequiredException

    {
        TreeObject selectedNode = getSelectedServerNode();
        ManagedServer managedServer = (ManagedServer) selectedNode.getManagedObject();
        if (_managedServerMap.containsKey(managedServer))
        {
            throw new InfoRequiredException("Server " + managedServer.getName() + " is already connected");
        }

        managedServer.setUser(user);
        managedServer.setPassword(password);
        createRMIServerConnection(managedServer);
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.