Examples of ParameterProblem


Examples of org.globus.workspace.client_core.ParameterProblem

    }

    private void validateArgs() throws ParameterProblem {

        if (this.ctxRetrieve == null) {
            throw new ParameterProblem("expected that Ctx_Retrieve object " +
                    "would be set up before this method was called");
        }

        if (this.args.clusterForImpersonationPath == null) {
            throw new ParameterProblem("missing path to cluster file to use " +
                    "for ctx agent retrieve operation");
        }

        final AgentDescription_Type args = new AgentDescription_Type();
       
        IdentityProvides_Type[] ids = new IdentityProvides_Type[2];
        ids[0] = this.getFake_0();
        ids[1] = this.getFake_1();
        args.setIdentity(ids);

        final Cloudcluster_Type clusta;
        try {
            clusta = FileUtils.getClusterDocForRetrieve(
                            this.pr, this.args.clusterForImpersonationPath);
        } catch (Exception e) {
            throw new ParameterProblem("Problem reading in the cluster " +
                    "ctx doc: " + e.getMessage(), e);
        }

        args.setCluster(clusta);
        this.ctxRetrieve.setRetrieveSend(args);
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.