Package org.rioproject.deploy

Examples of org.rioproject.deploy.DeployAdmin.undeploy()


                final JDialog waitDialog = new WaitingDialog(frame, "Undeploying "+name+"...", 500);
                org.rioproject.tools.ui.util.SwingWorker worker = new org.rioproject.tools.ui.util.SwingWorker() {
                    public Object construct() {
                        try {
                            DeployAdmin dAdmin = (DeployAdmin)node.getProvisionMonitor().getAdmin();
                            dAdmin.undeploy(name);
                        } catch(OperationalStringException e) {
                            graphView.removeOpString(name);
                        } catch(Exception e) {
                            System.err.println("OUCH");
                            e.printStackTrace();
View Full Code Here


                                try {
                                    String opStringName =
                                        entries[num - 1].getKey();
                                    DeployAdmin dAdmin =
                                        entries[num - 1].getValue();
                                    dAdmin.undeploy(opStringName);
                                    out.println("Command successful");
                                } catch (Exception e) {
                                    return ("Problem undeploying " +
                                            deployment + ", " +
                                            "Exception :" +
View Full Code Here

            try {
                DeployAdmin dAdmin =
                (DeployAdmin) CLI.getInstance().getServiceFinder().getPreparedAdmin(items[0].service);
                try {
                    dAdmin.undeploy(undeployName);
                    out.println("Command successful");
                } catch(OperationalStringException e) {
                    if(e.getMessage().startsWith("No deployment for")) {
                        return ("Command failed, no active deployment for " +
                                deployment);
View Full Code Here

                        public void actionPerformed(ActionEvent actionEvent) {
                            try {
                                DeployAdmin dAdmin =
                                    (DeployAdmin) node.getProvisionMonitor()
                                        .getAdmin();
                                dAdmin.undeploy(node.getOpStringName());
                            } catch (OperationalStringException e) {
                                GraphUtil.removeOpString(g,
                                                         item.getVisualization(),
                                                         node.getOpStringName());
                            } catch (Exception e) {
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.