Package org.ogf.schemas.jsdl

Examples of org.ogf.schemas.jsdl.JobDefinitionDocument


        jobType.set(JobTypeType.SERIAL);
        ApplicationContext appContext = getApplicationContext();
        appContext.setApplicationDeploymentDescription(getApplicationDesc(jobType));
        jobExecutionContext.setApplicationContext(appContext);

        JobDefinitionDocument jobDefDoc = JSDLGenerator.buildJSDLInstance(jobExecutionContext);

        assertTrue(jobDefDoc.getJobDefinition().getJobDescription().getApplication().toString().contains("/bin/cat"));
        assertTrue(jobDefDoc.getJobDefinition().getJobDescription().getDataStagingArray().length > 2);

        assertTrue(jobDefDoc.getJobDefinition().getJobDescription().getJobIdentification().getJobProjectArray().length > 0);

        assertFalse(JSDLUtils.getPOSIXApplication(jobDefDoc.getJobDefinition()) == null);

        assertEquals("jsdl_stdout", JSDLUtils.getOrCreatePOSIXApplication(jobDefDoc.getJobDefinition()).getOutput()
                .getStringValue().toString());

    }
View Full Code Here


        jobType.set(JobTypeType.MPI);
        ApplicationContext appContext = getApplicationContext();
        appContext.setApplicationDeploymentDescription(getApplicationDesc(jobType));
        jobExecutionContext.setApplicationContext(appContext);

        JobDefinitionDocument jobDefDoc = JSDLGenerator.buildJSDLInstance(jobExecutionContext);

        assertTrue(jobDefDoc.getJobDefinition().getJobDescription().getApplication().toString().contains("/bin/cat"));
        assertTrue(jobDefDoc.getJobDefinition().getJobDescription().getDataStagingArray().length > 2);

        assertTrue(jobDefDoc.getJobDefinition().getJobDescription().getJobIdentification().getJobProjectArray().length > 0);

        assertEquals("jsdl_stdout", JSDLUtils.getOrCreateSPMDApplication(jobDefDoc.getJobDefinition()).getOutput()
                .getStringValue().toString());

        assertFalse(JSDLUtils.getSPMDApplication(jobDefDoc.getJobDefinition()) == null);

    }
View Full Code Here

        jobType.set(JobTypeType.SERIAL);
        ApplicationContext appContext = getApplicationContext();
        appContext.setApplicationDeploymentDescription(getApplicationDesc(jobType));
        jobExecutionContext.setApplicationContext(appContext);

        JobDefinitionDocument jobDefDoc = JSDLGenerator.buildJSDLInstance(jobExecutionContext);

        assertTrue(jobDefDoc.getJobDefinition().getJobDescription().getApplication().toString().contains("/bin/cat"));
        assertTrue(jobDefDoc.getJobDefinition().getJobDescription().getDataStagingArray().length > 2);

        assertTrue(jobDefDoc.getJobDefinition().getJobDescription().getJobIdentification().getJobProjectArray().length > 0);

        assertFalse(JSDLUtils.getPOSIXApplication(jobDefDoc.getJobDefinition()) == null);

        assertEquals("jsdl_stdout", JSDLUtils.getOrCreatePOSIXApplication(jobDefDoc.getJobDefinition()).getOutput()
                .getStringValue().toString());

    }
View Full Code Here

        jobType.set(JobTypeType.MPI);
        ApplicationContext appContext = getApplicationContext();
        appContext.setApplicationDeploymentDescription(getApplicationDesc(jobType));
        jobExecutionContext.setApplicationContext(appContext);

        JobDefinitionDocument jobDefDoc = JSDLGenerator.buildJSDLInstance(jobExecutionContext);

        assertTrue(jobDefDoc.getJobDefinition().getJobDescription().getApplication().toString().contains("/bin/cat"));
        assertTrue(jobDefDoc.getJobDefinition().getJobDescription().getDataStagingArray().length > 2);

        assertTrue(jobDefDoc.getJobDefinition().getJobDescription().getJobIdentification().getJobProjectArray().length > 0);

        assertEquals("jsdl_stdout", JSDLUtils.getOrCreateSPMDApplication(jobDefDoc.getJobDefinition()).getOutput()
                .getStringValue().toString());

        assertFalse(JSDLUtils.getSPMDApplication(jobDefDoc.getJobDefinition()) == null);

    }
View Full Code Here

    protected final Logger log = LoggerFactory.getLogger(this.getClass());

    public synchronized static JobDefinitionDocument buildJSDLInstance(JobExecutionContext context) throws Exception {

        JobDefinitionDocument jobDefDoc = JobDefinitionDocument.Factory.newInstance();
        JobDefinitionType value = jobDefDoc.addNewJobDefinition();

        HpcApplicationDeploymentType appDepType = (HpcApplicationDeploymentType) context.getApplicationContext()
                .getApplicationDeploymentDescription().getType();

        // build Identification
View Full Code Here

TOP

Related Classes of org.ogf.schemas.jsdl.JobDefinitionDocument

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.