Examples of GFacImpl


Examples of org.apache.airavata.gfac.core.cpi.GFacImpl

    private GFac gfac;


    public void initialize(OrchestratorContext orchestratorContext) throws OrchestratorException {
        this.orchestratorContext = orchestratorContext;
        gfac = new GFacImpl(orchestratorContext.getNewRegistry(), null, orchestratorContext.getRegistry());
    }
View Full Code Here

Examples of org.apache.airavata.gfac.core.cpi.GFacImpl

        jobExecutionContext.setOutMessageContext(outMessage);
    }

    @Test
    public void testGramProvider() throws GFacException {
        GFacImpl gFacAPI = new GFacImpl();
        gFacAPI.submitJob(jobExecutionContext);
        MessageContext outMessageContext = jobExecutionContext.getOutMessageContext();
        Assert.assertEquals(MappingFactory.
                toString((ActualParameter) outMessageContext.getParameter("genome_output")), "476");
    }
View Full Code Here

Examples of org.apache.airavata.gfac.core.cpi.GFacImpl

public class GFacConfigXmlTest {

    private GFacImpl gfac;
    @BeforeClass
    public void setUp() throws Exception {
        gfac = new GFacImpl();
    }
View Full Code Here

Examples of org.apache.airavata.gfac.core.cpi.GFacImpl

        return null;
    }

    @Test
    public void testSSHProvider() throws GFacException {
        GFacImpl gFacAPI = new GFacImpl();
        gFacAPI.submitJob(jobExecutionContext);
        org.junit.Assert.assertNotNull(jobExecutionContext.getJobDetails().getJobDescription());
        org.junit.Assert.assertNotNull(jobExecutionContext.getJobDetails().getJobID());
    }
View Full Code Here

Examples of org.apache.airavata.gfac.core.cpi.GFacImpl

    return context;
  }

    @Test
    public void testLocalProvider() throws GFacException {
        GFacImpl gFacAPI = new GFacImpl();
        gFacAPI.submitJob(jobExecutionContext);
        MessageContext outMessageContext = jobExecutionContext.getOutMessageContext();
        Assert.assertEquals(MappingFactory.toString((ActualParameter)outMessageContext.getParameter("echo_output")), "hello");
    }
View Full Code Here

Examples of org.apache.airavata.gfac.core.cpi.GFacImpl

         setRegistryURL(ServerSettings.getProperties().getProperty("airavata.server.url"));
     }

    private GFac getGfac()throws TException{
        try {
            return new GFacImpl(registry, null,
                                AiravataRegistryFactory.getRegistry(new Gateway(getGatewayName()),
                                        new AiravataUser(getAiravataUserName())));
        } catch (RegException e) {
            throw new TException("Error initializing gfac instance",e);
        } catch (AiravataConfigurationException e) {
View Full Code Here

Examples of org.apache.airavata.gfac.core.cpi.GFacImpl

        GSISecurityContext sshSecurityContext = new GSISecurityContext(pbsCluster);
        return sshSecurityContext;
    }
    @Test
    public void testGSISSHProvider() throws GFacException {
        GFacImpl gFacAPI = new GFacImpl();
        gFacAPI.submitJob(jobExecutionContext);
        System.out.println(jobExecutionContext.getJobDetails().getJobDescription());
        System.out.println(jobExecutionContext.getJobDetails().getJobID());
    }
View Full Code Here

Examples of org.apache.airavata.gfac.core.cpi.GFacImpl

    }

    @Test
    public void testGramProvider() throws GFacException {
        GFacImpl gFacAPI = new GFacImpl();
        gFacAPI.submitJob(jobExecutionContext);
        MessageContext outMessageContext = jobExecutionContext.getOutMessageContext();
        Assert.assertEquals(MappingFactory.toString((ActualParameter)outMessageContext.getParameter("echo_output")), "hello");
    }
View Full Code Here

Examples of org.apache.airavata.gfac.core.cpi.GFacImpl

    private GFac gfac;


    public void initialize(OrchestratorContext orchestratorContext) throws OrchestratorException {
        this.orchestratorContext = orchestratorContext;
        gfac = new GFacImpl(orchestratorContext.getNewRegistry(), null, orchestratorContext.getRegistry());
    }
View Full Code Here

Examples of org.apache.airavata.gfac.cpi.GFacImpl

            jobExecutionContext.setOutMessageContext(getOutParameters(serviceDescription));
            jobExecutionContext.setInMessageContext(new MessageContext(actualParameters));

            addSecurityContext(registeredHost, configurationProperties, jobExecutionContext,
                    configuration.getContextHeader());
            GFacImpl gfacAPI1 = new GFacImpl();
            gfacAPI1.submitJob(jobExecutionContext);

            OMFactory fac = OMAbstractFactory.getOMFactory();
            OMNamespace omNs = fac.createOMNamespace("http://ws.apache.org/axis2/xsd", "ns1");
            OMElement outputElement = fac.createOMElement("invokeResponse", omNs);
            MessageContext outMessageContext = jobExecutionContext.getOutMessageContext();
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.