Examples of ExecutionProblem


Examples of org.globus.workspace.client_core.ExecutionProblem

            hash = SecurityUtil.hashGlobusCredential(this.getCredentialBeingUsed(), null);
        } catch (Exception e) {
            ex = e;
        }
        if (hash == null) {
            throw new ExecutionProblem("Could not obtain hash of current " +
                "credential to generate directory name", ex);
        }

        this.remoteUserBaseDir =
                CloudClientUtil.destUserBaseDir(this.targetBaseDirectory,
View Full Code Here

Examples of org.globus.workspace.client_core.ExecutionProblem

        AllArgs args = new AllArgs(new Print());
        try {
            args.intakeProperties(this.props, "from meta", null);
        } catch (Exception e) {
            throw new ExecutionProblem(e.getMessage(), e);
        }
        String urlString = CloudClientUtil.deriveImageURL(imageName, args);

        try {
            return new URI(urlString);
        } catch (URI.MalformedURIException e) {
            throw new ExecutionProblem(e.getMessage(), e);
        }
    }
View Full Code Here

Examples of org.globus.workspace.client_core.ExecutionProblem

                                          int durationMinutes,
                                          Print print)
        throws ExecutionProblem {

        if (members.isEmpty()) {
            throw new ExecutionProblem("this CloudDeployment has no members," +
                " it cannot be launched");
        }

        final File dir = new File(dirPath);
        if (!(dir.exists() && dir.isDirectory() && dir.canWrite())) {
            throw new IllegalArgumentException("Provided directory must" +
                " exist and be writeable");
        }


        final String eprIdIpDirPath = ExecuteUtil.makeDirectory(dirPath,
            "id-ip-dir", print);

        final String ensembleEprPath = new File(dir,
            HistoryUtil.ENSEMBLE_EPR_FILE_NAME)
            .getAbsolutePath();

        RunTask[] tasks = new RunTask[members.size()];

        for (int i = 0; i < members.size(); i++) {
            MemberDeployment member = members.get(i);

            boolean needsUserdata = (broker != null &&
                member.getMember().getClusterForUserData() != null);

            String memberName = HistoryUtil.getMemberName(i+1);
            String printName = member.getMember().getPrintName();
            if (printName == null) {
                printName = memberName;
            }

            String eprPath = new File(dir, memberName +"-epr").getAbsolutePath();
            if (member.getInstanceCount() == 1) {
                eprPath += ".xml";
            }

            String metadataPath;
            String deployPath;
            String userdataPath = null;

            try {
                metadataPath = HistoryUtil.writeMetadata(dir,
                    memberName+"-metadata.xml",
                    cloud.generateMetadata(member));

                deployPath = HistoryUtil.writeDeployment(dir,
                    memberName+"-deploy.xml",
                    cloud.generateDeployment(member, durationMinutes));

                if (needsUserdata) {
                    userdataPath = HistoryUtil.writeUserData(dir,
                        memberName+"-userdata.xml",
                        broker,
                        member.getMember().getClusterForUserData());
                }

            } catch (Exception e) {
                throw new ExecutionProblem("Problem writing data files for "+
                    printName,e);
            }

            tasks[i] = new RunTask(
                eprPath,
View Full Code Here

Examples of org.globus.workspace.client_core.ExecutionProblem

        // (for development only, to attach a remote debugger etc)
        if (CLIUtils.containsDebuggerHang(argv)) {
            try {
                CLIUtils.hangForInput(client.getPrint());
            } catch (IOException e) {
                throw new ExecutionProblem("", e);
            }
        }

        CommonPrint.logArgs(argv, client.getPrint());
View Full Code Here

Examples of org.globus.workspace.client_core.ExecutionProblem

        String help = null;
        try {
            help = getHelpString();
        } catch (IOException e) {
            throw new ExecutionProblem("Failed to get help string", e);
        }

        this.print.infoln(help);

    }
View Full Code Here

Examples of org.globus.workspace.client_core.ExecutionProblem

        // (for development only, to attach a remote debugger etc)
        if (CLIUtils.containsDebuggerHang(argv)) {
            try {
                CLIUtils.hangForInput(client.getPrint());
            } catch (IOException e) {
                throw new ExecutionProblem("", e);
            }
        }

        CommonPrint.logArgs(argv, client.getPrint());
View Full Code Here

Examples of org.globus.workspace.client_core.ExecutionProblem

            this.trustedCertDirs =
                    CertUtil.trustedCertificateDirectories(
                                                this.print.getDebugProxy());
        } catch (Exception e) {
            throw new ExecutionProblem(e.getMessage(), e); // ...
        }

        CommonPrint.printDebugSectionEnd(this.print, sectionTitle);
    }
View Full Code Here

Examples of org.globus.workspace.client_core.ExecutionProblem

            if (this.args.getActions().contains(AllArgs.ACTION_EXTRAHELP)) {
                this.print.infoln(new Help().getExtraHelpString());
                return true;
            }
        } catch (IOException e) {
            throw new ExecutionProblem("Unexpected problem with help system: "
                                + e.getMessage(), e);
        }
        return false;
    }
View Full Code Here

Examples of org.globus.workspace.client_core.ExecutionProblem

            try {
                //this.print.infoln("HASH: " +
                //            SecurityUtil.hashDN(this.hashPrintDN));
                this.print.infoln(SecurityUtil.hashDN(this.args.getHashPrintDN()));
            } catch (NoSuchAlgorithmException e) {
                throw new ExecutionProblem(e.getMessage(), e);
            }
        }
    }
View Full Code Here

Examples of org.globus.workspace.client_core.ExecutionProblem

                if(name != null) {
                    String pUrl = this.repoUtil.getRemoteUrl(name);
                    this.print.infoln(pUrl);
                } else {
                    throw new ExecutionProblem(
                             "print target configured but no target URL?");
                }

                CommonPrint.printDebugSectionEnd(this.print, sectionTitle);
            }
        } catch (Exception e) {
            throw new ExecutionProblem(e.getMessage(), 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.