Package org.apache.airavata.client.tools

Examples of org.apache.airavata.client.tools.DocumentCreator


    return expId;
  }

  private void addApplications() throws AiravataAPIInvocationException {
    AiravataAPI airavataAPI = getAiravataAPI();
    DocumentCreator documentCreator = new DocumentCreator(airavataAPI);
    documentCreator.createLocalHostDocs();
  }
View Full Code Here


        workerResource = (WorkerResource) ResourceUtils.getWorker(gatewayResource.getGatewayName(), ServerSettings.getDefaultUser());
        userResource = new UserResource();
        userResource.setUserName(ServerSettings.getDefaultUser());
        userResource.setPassword(ServerSettings.getDefaultUser());

        documentCreator = new DocumentCreator(getAiravataAPI());
        documentCreator.createLocalHostDocs();
        documentCreator.createGramDocs();
        documentCreator.createPBSDocsForOGCE();
    }
View Full Code Here

        return AiravataClientFactory.createAiravataClient(THRIFT_SERVER_HOST, THRIFT_SERVER_PORT);

    }
  public static void main(String[] args) throws InvalidRequestException, ExperimentNotFoundException, AiravataClientException, AiravataSystemException, ApplicationSettingsException, TException, AiravataAPIInvocationException, AiravataClientConnectException {
  AiravataAPI airavataAPI = getAiravataAPI();
  DocumentCreator documentCreator = new DocumentCreator(airavataAPI);
        documentCreator.createLocalHostDocs();
        String user = "admin";

        Project project=new Project();
        project.setName("project1");
        project.setProjectID("project1");
View Full Code Here

        }
    }

    public static void addDescriptors() throws AiravataAPIInvocationException,ApplicationSettingsException  {
        try {
            DocumentCreator documentCreator = new DocumentCreator(getAiravataAPI());
            documentCreator.createLocalHostDocs();
            documentCreator.createSSHHostDocs();
            documentCreator.createGramDocs();
            documentCreator.createPBSDocsForOGCE();
            documentCreator.createSlurmDocs();
            documentCreator.createSGEDocs();
            documentCreator.createEchoHostDocs();
        } catch (AiravataAPIInvocationException e) {
            logger.error("Unable to create airavata API", e.getMessage());
            throw new AiravataAPIInvocationException(e);
        } catch (ApplicationSettingsException e) {
            logger.error("Unable to create airavata API", e.getMessage());
View Full Code Here

            registry = RegistryFactory.getDefaultRegistry();
        } catch (Exception e) {
            e.printStackTrace()//To change body of catch statement use File | Settings | File Templates.
        }
        AiravataUtils.setExecutionAsServer();
        documentCreator = new DocumentCreator(getAiravataAPI());
        documentCreator.createLocalHostDocs();

        try {
            service.stop();
        } catch (Exception e) {
View Full Code Here

        workerResource = (WorkerResource) ResourceUtils.getWorker(gatewayResource.getGatewayName(), "admin");
        userResource = new UserResource();
        userResource.setUserName("admin");
        userResource.setPassword("admin");

        documentCreator = new DocumentCreator(getAiravataAPI());
        documentCreator.createLocalHostDocs();
        documentCreator.createGramDocs();
        documentCreator.createPBSDocsForOGCE();
    }
View Full Code Here

            registry = RegistryFactory.getDefaultRegistry();
        } catch (Exception e) {
            e.printStackTrace()//To change body of catch statement use File | Settings | File Templates.
        }
        AiravataUtils.setExecutionAsServer();
        documentCreator = new DocumentCreator(getAiravataAPI());
        documentCreator.createLocalHostDocs();

        try {
            service.stop();
        } catch (Exception e) {
View Full Code Here

//    }

    @Test(groups = {"echoGroup"}, dependsOnGroups = {"setupTests"})
    public void testEchoService() throws Exception {
        log.info("Running job in trestles...");
        DocumentCreator documentCreator = new DocumentCreator(airavataAPI);
        documentCreator.createPBSDocsForOGCE();
        List<DataObjectType> exInputs = new ArrayList<DataObjectType>();
        DataObjectType input = new DataObjectType();
        input.setKey("echo_input");
        input.setType(DataType.STRING);
        input.setValue("echo_output=Hello World");
View Full Code Here

    }

    @Test(groups = {"echoGroup"}, dependsOnGroups = {"setupTests"})
    public void testEchoServiceStampede() throws Exception {
        log.info("Running job in Stampede...");
        DocumentCreator documentCreator = new DocumentCreator(airavataAPI);
        documentCreator.createSlurmDocs();
        List<DataObjectType> exInputs = new ArrayList<DataObjectType>();
        DataObjectType input = new DataObjectType();
        input.setKey("echo_input");
        input.setType(DataType.STRING);
        input.setValue("echo_output=Hello World");
View Full Code Here

        }
    }

    public static void addDescriptors() throws AiravataAPIInvocationException,ApplicationSettingsException  {
        try {
            DocumentCreator documentCreator = new DocumentCreator(getAiravataAPI());
            documentCreator.createLocalHostDocs();
            documentCreator.createSSHHostDocs();
            documentCreator.createGramDocs();
            documentCreator.createPBSDocsForOGCE();
            documentCreator.createSlurmDocs();
            documentCreator.createSGEDocs();
            documentCreator.createEchoHostDocs();
        } catch (AiravataAPIInvocationException e) {
            logger.error("Unable to create airavata API", e.getMessage());
            throw new AiravataAPIInvocationException(e);
        } catch (ApplicationSettingsException e) {
            logger.error("Unable to create airavata API", e.getMessage());
View Full Code Here

TOP

Related Classes of org.apache.airavata.client.tools.DocumentCreator

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.