Package org.globus.workspace

Examples of org.globus.workspace.WorkspaceException


        }

        // not possible, Home initializes
        if (worksp == null) {
            logger.error(NO_WRKSP);
            throw new WorkspaceException(NO_WRKSP);
        }

        final ArrayList cmd = new ArrayList(6);

        cmd.add(worksp);
View Full Code Here


        }

        // not possible, Home initializes
        if (worksp == null) {
            logger.error(NO_WRKSP);
            throw new WorkspaceException(NO_WRKSP);
        }

        final ArrayList cmd = new ArrayList(6);

        cmd.add(worksp);
View Full Code Here

        if (e.stderr != null) {
            err = baseErr + "\nSTDERR: " + e.stderr;
        } else {
            err = baseErr;
        }
        return new WorkspaceException(err, e.getCause());
    }
View Full Code Here

        final ArrayList cmd = new ArrayList();

        if (executable == null) {
            final String err =
                    "ssh executable path is not configured, but needed";
            throw new WorkspaceException(err);
        }

        cmd.add(executable);
        cmd.add("-n");
        cmd.add("-T");
View Full Code Here

        final ArrayList cmd = new ArrayList();

        if (scpExe == null) {
            final String err =
                    "scp executable path is not configured, but needed";
            throw new WorkspaceException(err);
        }

        cmd.add(scpExe);

        if (sshIdFile != null) {
View Full Code Here

            throws WorkspaceException {

        if (memoryMB < 1) {
            final String err = "invalid memory " +
                    "request: " + Integer.toString(memoryMB);
            throw new WorkspaceException(err);
        }

        if (ppn < 0) {
            final String err = "invalid processors per node " +
                    "request: " + Integer.toString(ppn);
            throw new WorkspaceException(err);
        }

        if (walltimeSeconds < 1) {
            final String err = "invalid walltime request: " +
                    Long.toString(walltimeSeconds);
            throw new WorkspaceException(err);
        }

        final ArrayList cmd = new ArrayList(20);

        cmd.add(this.submit);
View Full Code Here

     */
    public String[] constructQdel(String jobid)
            throws WorkspaceException {

        if (jobid == null) {
            throw new WorkspaceException("no Torque ID was provided");
        }

        return new String[]{this.delete, jobid};
    }
View Full Code Here

TOP

Related Classes of org.globus.workspace.WorkspaceException

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.