Package org.globus.workspace

Examples of org.globus.workspace.WorkspaceException


        if (vm != null) {
            final ArrayList exe =
                    XenUtil.constructCreateCommand(vm, false);
            this.cmd = (String[]) exe.toArray(new String[exe.size()]);
        } else {
            throw new WorkspaceException("no VirtualMachine in request " +
                    "context, can not " + this.name);
        }
    }
View Full Code Here


            final ArrayList ssh = SSHUtil.constructSshCommand(vm.getNode());
            final ArrayList exe = XenUtil.constructRemoveCommand(vm, true);
            ssh.addAll(exe);
            this.cmd = (String[]) ssh.toArray(new String[ssh.size()]);
        } else {
            throw new WorkspaceException("no VirtualMachine in request " +
                    "context, can not " + this.name);
        }
    }
View Full Code Here

            ssh.addAll(exe);
            this.cmd = (String[]) ssh.toArray(new String[ssh.size()]);

        } else {
            throw new WorkspaceException("no VirtualMachine in request " +
                    "context, can not " + this.name);
        }
    }
View Full Code Here

            ssh.addAll(exe);
            this.cmd = (String[]) ssh.toArray(new String[ssh.size()]);

        } else {
            throw new WorkspaceException("no VirtualMachine in request " +
                    "context, can not " + this.name);
        }
    }
View Full Code Here

                ssh.add("'credential=" + credentialName + "'");
            }

            this.cmd = (String[]) ssh.toArray(new String[ssh.size()]);
        } else {
            throw new WorkspaceException("no VirtualMachine in request " +
                    "context, can not " + this.name);
        }
    }
View Full Code Here

            final ArrayList ssh = SSHUtil.constructSshCommand(vm.getNode());
            final ArrayList exe = XenUtil.constructRemoveCommand(vm, false);
            ssh.addAll(exe);
            this.cmd = (String[]) ssh.toArray(new String[ssh.size()]);
        } else {
            throw new WorkspaceException("no VirtualMachine in request " +
                    "context, can not " + this.name);
        }
    }
View Full Code Here

    private static WorkspaceException getException(int code, String message) {
        if (code == 0) {
            return null;
        } else {
            if (message == null) {
                return new WorkspaceException(
                        "(no error string in notification(?))");
            } else {
                return new WorkspaceException(message);
            }
        }
    }
View Full Code Here

            final ArrayList ssh = SSHUtil.constructSshCommand(vm.getNode());
            final ArrayList exe = XenUtil.constructCreateCommand(vm, false);
            ssh.addAll(exe);
            this.cmd = (String[]) ssh.toArray(new String[ssh.size()]);
        } else {
            throw new WorkspaceException("no VirtualMachine in request " +
                    "context, can not " + this.name);
        }
    }
View Full Code Here

                                Lager lager,
                                TimerManager timerManager)
            throws Exception {

        if (db == null) {
            throw new WorkspaceException("db can not be null");
        } else if (!db.isInitialized()) {
            throw new WorkspaceException("DBAccountingPersistence not " +
                    "initialized");
        }

        if (lager == null) {
            throw new IllegalArgumentException("lager may not be null");
        }

        if (timerManager == null) {
            throw new IllegalArgumentException("timerManager may not be null");
        }

        if (writeDelayMilliseconds < MIN_WRITE_DELAY_MILLISECONDS) {
            throw new WorkspaceException("write delay can not be less " +
                    "than " + MIN_WRITE_DELAY_MILLISECONDS + " ms");
        }

        final DelayedAccountingFileLogger fileLog =
                   new DelayedAccountingFileLogger(currentReservationsPath,
View Full Code Here

    private void initialize() throws Exception {

        if (this.eventLogPath == null
                && this.currentReservationsPath == null) {
            throw new WorkspaceException("no paths configured");
        }

        if (this.eventLogPath != null) {

            this.eventLogFile = new File(this.eventLogPath);
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.