Package org.apache.airavata.gfac.context

Examples of org.apache.airavata.gfac.context.MessageContext.addParameter()


        inMessage.addParameter("f1", copy_input);
   
      ActualParameter f2 = new ActualParameter();
        f2.getType().changeType(URIParameterType.type);
        ((URIParameterType)f2.getType()).setValue("http://unicore-dev.zam.kfa-juelich.de/maven/cog-globus/cog-jglobus/1.4/cog-jglobus-1.4.jar");
        inMessage.addParameter("f2", f2);
       
       
        ActualParameter a1 = new ActualParameter();
        a1.getType().changeType(StringParameterType.type);
        ((StringParameterType)a1.getType()).setValue(tmpFile.getName());
View Full Code Here


       
       
        ActualParameter a1 = new ActualParameter();
        a1.getType().changeType(StringParameterType.type);
        ((StringParameterType)a1.getType()).setValue(tmpFile.getName());
        inMessage.addParameter("arg1", a1);

        return inMessage;
  }

  protected MessageContext getOutMessageContext() {
View Full Code Here

   
    MessageContext outMessage = new MessageContext();
    ActualParameter a1 = new ActualParameter();
    a1.getType().changeType(StringParameterType.type);
    ((StringParameterType)a1.getType()).setValue(new File(tmpFilePath).getName());
    outMessage.addParameter("echo_output", a1);
   
    ActualParameter o1 = new ActualParameter();
    o1.getType().changeType(URIParameterType.type);
    // this may be any gridftp / ftp directory
    ((URIParameterType)o1.getType()).setValue(gridftpAddress+"/"+remoteTempDir + "/" + "outputData"+"/"+"cog-jglobus-1.4.jar");
View Full Code Here

   
    ActualParameter o1 = new ActualParameter();
    o1.getType().changeType(URIParameterType.type);
    // this may be any gridftp / ftp directory
    ((URIParameterType)o1.getType()).setValue(gridftpAddress+"/"+remoteTempDir + "/" + "outputData"+"/"+"cog-jglobus-1.4.jar");
    outMessage.addParameter("o1", o1);
   
    return outMessage;
  }
 
  @After
View Full Code Here

        applicationContext.setHostDescription(host);

        MessageContext inMessage = new MessageContext();
        ActualParameter echo_input = new ActualParameter();
        ((StringParameterType) echo_input.getType()).setValue("echo_output=hello");
        inMessage.addParameter("echo_input", echo_input);


        jobExecutionContext.setInMessageContext(inMessage);

        MessageContext outMessage = new MessageContext();
View Full Code Here

        jobExecutionContext.setInMessageContext(inMessage);

        MessageContext outMessage = new MessageContext();
        ActualParameter echo_out = new ActualParameter();
//    ((StringParameterType)echo_input.getType()).setValue("echo_output=hello");
        outMessage.addParameter("echo_output", echo_out);

        jobExecutionContext.setOutMessageContext(   outMessage);

    }
View Full Code Here

        applicationContext.setServiceDescription(serv);

        MessageContext inMessage = new MessageContext();
        ActualParameter echo_input = new ActualParameter();
    ((StringParameterType)echo_input.getType()).setValue("echo_output=hello");
        inMessage.addParameter("echo_input", echo_input);

        jobExecutionContext.setInMessageContext(inMessage);

        MessageContext outMessage = new MessageContext();
        ActualParameter echo_out = new ActualParameter();
View Full Code Here

        jobExecutionContext.setInMessageContext(inMessage);

        MessageContext outMessage = new MessageContext();
        ActualParameter echo_out = new ActualParameter();
//    ((StringParameterType)echo_input.getType()).setValue("echo_output=hello");
        outMessage.addParameter("echo_output", echo_out);

        jobExecutionContext.setOutMessageContext(outMessage);

    }
View Full Code Here

        applicationContext.setHostDescription(host);

        MessageContext inMessage = new MessageContext();
        ActualParameter echo_input = new ActualParameter();
        ((StringParameterType)echo_input.getType()).setValue("echo_output=hello");
        inMessage.addParameter("echo_input", echo_input);

        // added extra
        ActualParameter copy_input = new ActualParameter();
        copy_input.getType().changeType(URIParameterType.type);
        ((URIParameterType)copy_input.getType()).setValue("file:///tmp/tmpstrace");
View Full Code Here

        copy_input.getType().changeType(URIParameterType.type);
        ((URIParameterType)copy_input.getType()).setValue("file:///tmp/tmpstrace");

        ActualParameter outlocation = new ActualParameter();
        ((StringParameterType)outlocation.getType()).setValue("./outputData/.");
        inMessage.addParameter("copy_input", copy_input);
        inMessage.addParameter("outputlocation", outlocation);

        // added extra

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.