Package org.apache.airavata.gfac.core.cpi

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


        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

public class GFacConfigXmlTest {

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

        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

    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

         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

        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

    }

    @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

    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

TOP

Related Classes of org.apache.airavata.gfac.core.cpi.GFacImpl

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.