Package org.apache.airavata.api.Airavata

Examples of org.apache.airavata.api.Airavata.Client


    }

    public void servicesChanged(ThriftServiceType type) {
        if (type==ThriftServiceType.API_SERVICE) {
          try {
        Client airavataClient = XBayaUtil.getAiravataClient(getThriftClientData(ThriftServiceType.API_SERVICE));
        if (getJcrComponentRegistry() == null) {
          setJcrComponentRegistry(new JCRComponentRegistry(airavataClient));
        } else {
          getJcrComponentRegistry().setClient(airavataClient);
        }
View Full Code Here


    userConfigurationData.setAiravataAutoSchedule(false);
    userConfigurationData.setOverrideManualScheduledParams(false);
    userConfigurationData.setComputationalResourceScheduling(scheduling);
    simpleExperiment.setUserConfigurationData(userConfigurationData);

    Client client = getClient();
    final String expId = client.createExperiment(simpleExperiment);

    client.launchExperiment(expId, "testToken");
    return expId;
  }
View Full Code Here

        Project project=new Project();
        project.setName("project1");
        project.setProjectID("project1");
    project.setOwner(user);
        Client client = getClient();
    String projectId=client.createProject(project);
    System.out.println("Created new project '"+project.getName()+"' with project id "+projectId);
        List<DataObjectType> exInputs = new ArrayList<DataObjectType>();
        DataObjectType input = new DataObjectType();
        input.setKey("echo_input");
        input.setType(DataType.STRING);
        input.setValue("echo_output=Hello World");
        exInputs.add(input);

        List<DataObjectType> exOut = new ArrayList<DataObjectType>();
        DataObjectType output = new DataObjectType();
        output.setKey("echo_output");
        output.setType(DataType.STDOUT);
        output.setValue("");
        exOut.add(output);

        Experiment simpleExperiment =
                ExperimentModelUtil.createSimpleExperiment(projectId, user, "echoExperiment", "SimpleEcho0", "SimpleEcho0", exInputs);
        simpleExperiment.setExperimentOutputs(exOut);

        ComputationalResourceScheduling scheduling = ExperimentModelUtil.createComputationResourceScheduling("localhost", 1, 1, 1, "normal", 0, 0, 1, "sds128");
        scheduling.setResourceHostId("localhost");
        UserConfigurationData userConfigurationData = new UserConfigurationData();
        userConfigurationData.setAiravataAutoSchedule(false);
        userConfigurationData.setOverrideManualScheduledParams(false);
        userConfigurationData.setComputationalResourceScheduling(scheduling);
        simpleExperiment.setUserConfigurationData(userConfigurationData);



    final String expId = client.createExperiment(simpleExperiment);
        System.out.println("Experiment Id returned : " + expId);


        client.launchExperiment(expId,"testToken");

        System.out.println("Launched successfully");

  }
View Full Code Here

        Project project=new Project();
        project.setName("project1");
        project.setProjectID("project1");
    project.setOwner(user);
        Client client = getClient();
    String projectId=client.createProject(project);
    System.out.println("Created new project '"+project.getName()+"' with project id "+projectId);
        List<DataObjectType> exInputs = new ArrayList<DataObjectType>();
        DataObjectType input = new DataObjectType();
        input.setKey("echo_input");
        input.setType(DataType.STRING);
        input.setValue("echo_output=Hello World");
        exInputs.add(input);

        List<DataObjectType> exOut = new ArrayList<DataObjectType>();
        DataObjectType output = new DataObjectType();
        output.setKey("echo_output");
        output.setType(DataType.STDOUT);
        output.setValue("");
        exOut.add(output);

        Experiment simpleExperiment =
                ExperimentModelUtil.createSimpleExperiment(projectId, user, "echoExperiment", "SimpleEcho0", "SimpleEcho0", exInputs);
        simpleExperiment.setExperimentOutputs(exOut);

        ComputationalResourceScheduling scheduling = ExperimentModelUtil.createComputationResourceScheduling("localhost", 1, 1, 1, "normal", 0, 0, 1, "sds128");
        scheduling.setResourceHostId("localhost");
        UserConfigurationData userConfigurationData = new UserConfigurationData();
        userConfigurationData.setAiravataAutoSchedule(false);
        userConfigurationData.setOverrideManualScheduledParams(false);
        userConfigurationData.setComputationalResourceScheduling(scheduling);
        simpleExperiment.setUserConfigurationData(userConfigurationData);



    final String expId = client.createExperiment(simpleExperiment);
        System.out.println("Experiment Id returned : " + expId);


        client.launchExperiment(expId,"testToken");

        System.out.println("Launched successfully");

  }
View Full Code Here

    userConfigurationData.setAiravataAutoSchedule(false);
    userConfigurationData.setOverrideManualScheduledParams(false);
    userConfigurationData.setComputationalResourceScheduling(scheduling);
    simpleExperiment.setUserConfigurationData(userConfigurationData);

    Client client = getClient();
    final String expId = client.createExperiment(simpleExperiment);

    client.launchExperiment(expId, "testToken");
    return expId;
  }
View Full Code Here

TOP

Related Classes of org.apache.airavata.api.Airavata.Client

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.