Package org.globus.workspace.service.binding.vm

Examples of org.globus.workspace.service.binding.vm.FileCopyNeed


        } catch (Exception e) {
            throw new CreationException("Couldn't save credential to " + localTempDirectory
                                         + ". " + e.getMessage());
        }

        final FileCopyNeed need;
        try {
            // FileCopyNeed expects a file in nimbus's tmp, not a full path
            need = new FileCopyNeed(credentialName);
            vm.addFileCopyNeed(need);
        } catch (Exception e) {
            final String err = "problem setting up file copy for credential: " +
                    credentialName + " : " + e.getMessage();
            throw new CreationException(err);
View Full Code Here


            throw new Exception(err);
        }

        final String srcPath = this.newSrcPath();

        final FileCopyNeed need;
        try {
            need = new FileCopyNeed(srcPath, dstPath);
        } catch (Exception e) {
            if (logger.isDebugEnabled()) {
                logger.error(e.getMessage(), e);
            } else {
                logger.error(e.getMessage());
View Full Code Here

        do {
            String sourcePath = rs.getString("sourcepath");
            String destPath = rs.getString("destpath");
            boolean onImage = rs.getBoolean("on_image");
            try {
                FileCopyNeed need = new FileCopyNeed(sourcePath, destPath, onImage);
                vm.addFileCopyNeed(need);
            } catch(Exception e) {
                throw new WorkspaceDatabaseException("", e);
            }
        } while(rs.next());
View Full Code Here

        try {
            final String src = rs.getString(1);
            final String dst = rs.getString(2);
            final boolean sent = rs.getBoolean(3);
            return new FileCopyNeed(src, dst, sent);
        } catch (Exception e) {
            throw new WorkspaceDatabaseException(e.getMessage(), e);
        }
    }
View Full Code Here

            // text that works like a blob. Clean up w/ next interface changes
            // to the ctx broker
            try {
                final String newContent =
                        addIPs(context.getBootstrapText(), vm);
                final FileCopyNeed need =
                        this.binding.newFileCopyNeed(
                                newContent, context.getBootstrapPath());
                resource.newFileCopyNeed(need);
            } catch (Exception e) {
                logger.error(e.getMessage());
View Full Code Here

TOP

Related Classes of org.globus.workspace.service.binding.vm.FileCopyNeed

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.