Examples of ExperimentAdvanceOptions


Examples of org.apache.airavata.client.api.ExperimentAdvanceOptions

  @Override
  public ExperimentAdvanceOptions createExperimentAdvanceOptions(
      String experimentName, String experimentUser,
      String experimentMetadata) throws AiravataAPIInvocationException {
    ExperimentAdvanceOptions options = createExperimentAdvanceOptions();
    options.setExperimentName(experimentName);
    options.setExperimentCustomMetadata(experimentMetadata);
    options.setExperimentExecutionUser(experimentUser);
    return options;
  }
View Full Code Here

Examples of org.apache.airavata.client.api.ExperimentAdvanceOptions

  }

  public static void main(String[] args) {
    ExecutionManagerImpl a = new ExecutionManagerImpl(null);
    try {
      ExperimentAdvanceOptions b = a.createExperimentAdvanceOptions();
      b.getCustomWorkflowOutputDataSettings().addNewOutputDataSettings("la", "di", "da", false);
      WorkflowContextHeaderBuilder c = AiravataAPIUtils.createWorkflowContextHeaderBuilder(b, "sheeeeeeeeeeee","meeee");
      System.out.println(XMLUtil.xmlElementToString(c.getXml()));
    } catch (AiravataAPIInvocationException e) {
      e.printStackTrace();
    }
View Full Code Here

Examples of org.apache.airavata.client.api.ExperimentAdvanceOptions

                      InputNode inputNode = inputNodes.get(i);
                      workflowInputs.add(new WorkflowInput(inputNode.getID(), inputNode.getDefaultValue().toString()));
                    }
                    AiravataAPI api = engine.getConfiguration().getAiravataAPI();
                   
                    ExperimentAdvanceOptions options = api.getExecutionManager().createExperimentAdvanceOptions(instanceNameFinal, api.getCurrentUser(), null);
                    if (AmazonCredential.getInstance().getAwsAccessKeyId() != null) {
                        options.getCustomSecuritySettings().getAmazonWSSettings().setAccessKeyId(AmazonCredential.getInstance().getAwsAccessKeyId());
                        options.getCustomSecuritySettings().getAmazonWSSettings().setSecretAccessKey(AmazonCredential.getInstance().getAwsSecretAccessKey());
                    }

                    //TODO get the token id from UI
                    // For the moment hard code it
                    // TODO Build UI to get the token id
View Full Code Here

Examples of org.apache.airavata.client.api.ExperimentAdvanceOptions

    this.gateway = gateway;
  }
 
  public static void main(String[] args) throws Exception {
    AiravataAPI api = AiravataAPIFactory.getAPI(new URI("http://localhost:8080/airavata/services/registry"), "default", "admin", new PasswordCallBackImpl("admin", "admin"));
    ExperimentAdvanceOptions options = api.getExecutionManager().createExperimentAdvanceOptions();
    options.getCustomWorkflowSchedulingSettings().addNewNodeSettings("data1", "comma_app", 1, 1);
    String workflow = "Workflow3";
    List<WorkflowInput> inputs = api.getWorkflowManager().getWorkflowInputs(workflow);
    System.out.println(api.getExecutionManager().runExperiment(workflow, inputs,options));
  }
View Full Code Here

Examples of org.apache.airavata.client.api.ExperimentAdvanceOptions

    }

    protected String executeWorkflow(Workflow workflow, List<String> inputValues) throws Exception {
        List<WorkflowInput> workflowInputs = setupInputs(workflow, inputValues);
        String workflowName = workflow.getName();
        ExperimentAdvanceOptions options = getAiravataAPI().getExecutionManager().createExperimentAdvanceOptions(
                workflowName, getUserName(), null);

        options.getCustomSecuritySettings().getCredentialStoreSecuritySettings().setTokenId("1234");

        String experimentId = getAiravataAPI().getExecutionManager().runExperiment(workflowName, workflowInputs, options);

        Assert.assertNotNull(experimentId);
View Full Code Here

Examples of org.apache.airavata.client.api.ExperimentAdvanceOptions

    }

    protected void runWorkFlow(Workflow workflow, List<String> inputValues, Object outputValue) throws Exception {
        List<WorkflowInput> workflowInputs = setupInputs(workflow, inputValues);
        String workflowName = workflow.getName();
        ExperimentAdvanceOptions options = airavataAPI.getExecutionManager().createExperimentAdvanceOptions(
                workflowName, getUserName(), null);

        String experimentId = airavataAPI.getExecutionManager().runExperiment(workflowName, workflowInputs, options);

        Assert.assertNotNull(experimentId);
View Full Code Here

Examples of org.apache.airavata.client.api.ExperimentAdvanceOptions

                      InputNode inputNode = inputNodes.get(i);
                      workflowInputs.add(new WorkflowInput(inputNode.getID(), inputNode.getDefaultValue().toString()));
                    }
                    AiravataAPI api = engine.getConfiguration().getAiravataAPI();
                   
                    ExperimentAdvanceOptions options = api.getExecutionManager().createExperimentAdvanceOptions(instanceNameFinal, api.getCurrentUser(), null);
                    if (AmazonCredential.getInstance().getAwsAccessKeyId() != null) {
                        options.getCustomSecuritySettings().getAmazonWSSettings().setAccessKeyId(AmazonCredential.getInstance().getAwsAccessKeyId());
                        options.getCustomSecuritySettings().getAmazonWSSettings().setSecretAccessKey(AmazonCredential.getInstance().getAwsSecretAccessKey());
                    }

                    //TODO get the token id from UI
                    // For the moment hard code it
                    // TODO Build UI to get the token id
View Full Code Here

Examples of org.apache.airavata.client.api.ExperimentAdvanceOptions

    this.gateway = gateway;
  }
 
  public static void main(String[] args) throws Exception {
    AiravataAPI api = AiravataAPIFactory.getAPI(new URI("http://localhost:8080/airavata/services/registry"), "default", "admin", new PasswordCallBackImpl("admin", "admin"));
    ExperimentAdvanceOptions options = api.getExecutionManager().createExperimentAdvanceOptions();
    options.getCustomWorkflowSchedulingSettings().addNewNodeSettings("data1", "comma_app", 1, 1);
    String workflow = "Workflow3";
            List<WorkflowInput> inputs = api.getWorkflowManager().getWorkflowInputs(workflow);
    System.out.println(api.getExecutionManager().runExperiment(workflow, inputs,options));
  }
View Full Code Here

Examples of org.apache.airavata.client.api.ExperimentAdvanceOptions

  }

  @Override
  public String runExperiment(String workflowTemplateId,
      List<WorkflowInput> inputs) throws AiravataAPIInvocationException {
    ExperimentAdvanceOptions options = createExperimentAdvanceOptions(workflowTemplateId+"_"+Calendar.getInstance().getTime().toString(), getClient().getCurrentUser(), null);
    return runExperiment(workflowTemplateId, inputs ,options);
  }
View Full Code Here

Examples of org.apache.airavata.client.api.ExperimentAdvanceOptions

 

  @Override
  public ExperimentAdvanceOptions createExperimentAdvanceOptions()
      throws AiravataAPIInvocationException {
    return new ExperimentAdvanceOptions();
  }
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.