Package org.apache.airavata.client.api

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


//    }

    public List<ApplicationDeploymentDescriptionWrap> getDescriptions() throws RegistryException, AiravataAPIInvocationException {
        List<ApplicationDeploymentDescriptionWrap> list = new ArrayList<ApplicationDeploymentDescriptionWrap>();
        if (getServiceName()==null) {
            ApplicationManager applicationManager = getAiravataAPI().getApplicationManager();
            List<ServiceDescription> serviceDescriptors = applicationManager.getAllServiceDescriptions();
          for (ServiceDescription serviceDescription : serviceDescriptors) {
            String serviceName = serviceDescription.getType().getName();
        Map<String,ApplicationDescription> deploymentDescriptions = applicationManager.getApplicationDescriptors(serviceName);
        for (String hostName : deploymentDescriptions.keySet()) {
          ApplicationDescription descriptionWrap=deploymentDescriptions.get(hostName);
          list.add(new ApplicationDeploymentDescriptionWrap(getAiravataAPI(), descriptionWrap, serviceName,hostName));
        }
      }
View Full Code Here


//    }

    public List<ApplicationDeploymentDescriptionWrap> getDescriptions() throws RegistryException, AiravataAPIInvocationException {
        List<ApplicationDeploymentDescriptionWrap> list = new ArrayList<ApplicationDeploymentDescriptionWrap>();
        if (getServiceName()==null) {
            ApplicationManager applicationManager = getAiravataAPI().getApplicationManager();
            List<ServiceDescription> serviceDescriptors = applicationManager.getAllServiceDescriptions();
          for (ServiceDescription serviceDescription : serviceDescriptors) {
            String serviceName = serviceDescription.getType().getName();
        Map<String,ApplicationDescription> deploymentDescriptions = applicationManager.getApplicationDescriptors(serviceName);
        for (String hostName : deploymentDescriptions.keySet()) {
          ApplicationDescription descriptionWrap=deploymentDescriptions.get(hostName);
          list.add(new ApplicationDeploymentDescriptionWrap(getAiravataAPI(), descriptionWrap, serviceName,hostName));
        }
      }
View Full Code Here

                "127.0.0.1");

        log("Adding host description ....");

        addHostDescriptor(hostDescription);
        ApplicationManager applicationManager = airavataAPI.getApplicationManager();
        Assert.assertTrue(applicationManager.isHostDescriptorExists(
                hostDescription.getType().getHostName()));

        List<InputParameterType> inputParameters = new ArrayList<InputParameterType>();
        inputParameters.add(descriptorBuilder.buildInputParameterType("echo_input", "echo input", DataType.STRING));

        List<OutputParameterType> outputParameters = new ArrayList<OutputParameterType>();
        outputParameters.add(descriptorBuilder.buildOutputParameterType("echo_output", "Echo output", DataType.STRING));

        ServiceDescription serviceDescription = descriptorBuilder.buildServiceDescription("Echo", "Echo service",
                inputParameters, outputParameters);

        log("Adding service description ...");

        addServiceDescriptor(serviceDescription, "Echo");

        Assert.assertTrue(applicationManager.isServiceDescriptorExists(
                serviceDescription.getType().getName()));

        // Deployment descriptor
        ApplicationDescription applicationDeploymentDescription = descriptorBuilder
                .buildApplicationDeploymentDescription("EchoApplication", OsUtils.getEchoExecutable(), OsUtils.getTempFolderPath());

        log("Adding deployment description ...");

        addApplicationDescriptor(applicationDeploymentDescription, serviceDescription, hostDescription, "EchoApplication");
        Assert.assertTrue(applicationManager.isApplicationDescriptorExists(
                serviceDescription.getType().getName(), hostDescription.getType().getHostName(),
                applicationDeploymentDescription.getType().getApplicationName().getStringValue()));

        log("Saving workflow ...");
        Workflow workflow = new Workflow(getWorkflowComposeContent("src/test/resources/EchoWorkflow.xwf"));
View Full Code Here

TOP

Related Classes of org.apache.airavata.client.api.ApplicationManager

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.