Package org.rioproject.deploy

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


                        }
                    }
                } else {
                    if (deployOptions.getDeployTimeout() > 0 && wait) {
                        ServiceProvisionNotification spn = CLI.getInstance().provisionNotifier;
                        deployAdmin.deploy(deploy, spn.getServiceProvisionListener());
                        long t0 = System.currentTimeMillis();
                        out.println("Deploying [" +
                                    ServiceProvisionNotification.getDeploymentNames(deploy) + "], " +
                                    "total services ["+ServiceProvisionNotification.sumUpServices(deploy) + "] ...");
                        spn.notify(
View Full Code Here


                        long t1 = System.currentTimeMillis();
                        return ((deployOptions.verbose ?
                                 "Deployment notification time " +(t1 - t0) + " millis, Command completed"
                                                       : ""));
                    } else {
                        deployAdmin.deploy(deploy, null);
                    }
                }
                return ((deployOptions.verbose ? "Command completed" : ""));
            } catch (Exception e) {
                e.printStackTrace();
View Full Code Here

                if(deployOptions.getDeployTimeout()>0 && wait) {
                    ServiceProvisionNotification spn = CLI.getInstance().provisionNotifier;
                    String label = "Artifact";
                    if(isArtifact) {
                        deployAdmin.deploy(deployName, spn.getServiceProvisionListener());
                    } else {
                        label = "OAR";
                        try{
                            //deployAdmin.deploy(toDeploy, spn.getServiceProvisionListener());
                            deployAdmin.deploy(oarUrl, spn.getServiceProvisionListener());
View Full Code Here

                        deployAdmin.deploy(deployName, spn.getServiceProvisionListener());
                    } else {
                        label = "OAR";
                        try{
                            //deployAdmin.deploy(toDeploy, spn.getServiceProvisionListener());
                            deployAdmin.deploy(oarUrl, spn.getServiceProvisionListener());
                        } finally {
                            if(embeddedWebster!=null)
                                embeddedWebster.terminate();
                        }
                    }
View Full Code Here

                    long t1 = System.currentTimeMillis();
                    return((deployOptions.verbose?
                            "Deployment notification time "+(t1-t0)+" millis, Command completed":""));
                } else {
                    if(isArtifact)
                        deployAdmin.deploy(deployName, null);
                    else
                        deployAdmin.deploy(toDeploy, null);
                }

                return((deployOptions.verbose?"Command completed":""));
View Full Code Here

                            "Deployment notification time "+(t1-t0)+" millis, Command completed":""));
                } else {
                    if(isArtifact)
                        deployAdmin.deploy(deployName, null);
                    else
                        deployAdmin.deploy(toDeploy, null);
                }

                return((deployOptions.verbose?"Command completed":""));
            } catch (Exception e) {
                e.printStackTrace();
View Full Code Here

                                                                       JOptionPane.YES_NO_OPTION);
                            if (result == JOptionPane.YES_OPTION) {
                                dAdmin.getOperationalStringManager(opString.getName()).update(opString);
                            }
                        } else {
                            dAdmin.deploy(opString);
                        }
                    }
                } catch (Exception e) {
                    e.printStackTrace();
                    Util.showError(e, frame, "Failure trying to deploy " + deployName);
View Full Code Here

        SwingWorker worker = new SwingWorker() {
            public Object construct() {
                try {
                    ProvisionMonitor monitor = (ProvisionMonitor) item.service;
                    DeployAdmin dAdmin = (DeployAdmin) monitor.getAdmin();
                    dAdmin.deploy(artifact);
                } catch (Exception e) {
                    e.printStackTrace();
                    Throwable cause = e.getCause();
                    if(cause != null) {
                        Throwable nested = cause.getCause();
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.