Package org.ogf.schemas.jsdl

Examples of org.ogf.schemas.jsdl.ApplicationType


            return JSDLUtils.getOrCreatePOSIXApplication(value).getError().getStringValue();
    }

    public static void createGenericApplication(JobDefinitionType value, HpcApplicationDeploymentType appDepType) {
        if (appDepType.getApplicationName() != null) {
            ApplicationType appType = JSDLUtils.getOrCreateApplication(value);
            String appName = appDepType.getApplicationName().getStringValue();
            appType.setApplicationName(appName);
            JSDLUtils.getOrCreateJobIdentification(value).setJobName(appName);
        }
    }
View Full Code Here


        return jobResources.getTotalResourceCount();
    }

    public static POSIXApplicationType getOrCreatePOSIXApplication(JobDefinitionType value) {

        ApplicationType application = getOrCreateApplication(value);

        if (getHPCProfileApplication(value) != null) {
            // TODO handle: not creating POSIX element if HPCProfile already exists
            return getPOSIXApplication(value);
        }

        if (getPOSIXApplication(value) == null) {
            XmlCursor acursor = application.newCursor();
            acursor.toEndToken();
            acursor.insertElement(POSIX_APPLICATION);
            acursor.dispose();
        }
        return getPOSIXApplication(value);
View Full Code Here

        return getPOSIXApplication(value);
    }

    public static SPMDApplicationType getOrCreateSPMDApplication(JobDefinitionType value) {

        ApplicationType application = getOrCreateApplication(value);

        if (getSPMDApplication(value) == null) {
            XmlCursor acursor = application.newCursor();
            acursor.toEndToken();
            acursor.insertElement(SPMD_APPLICATION);
            acursor.dispose();
        }
        return getSPMDApplication(value);
View Full Code Here

        }
    }

    public static HPCProfileApplicationType getOrCreateHPCProfileApplication(JobDefinitionType value) {

        ApplicationType application = getOrCreateApplication(value);

        if (getPOSIXApplication(value) != null) {
            // TODO handle: creating HPC element if POSIX already exists
            return getHPCProfileApplication(value);
        }

        if (getHPCProfileApplication(value) == null) {
            XmlCursor acursor = application.newCursor();
            acursor.toEndToken();
            acursor.insertElement(HPC_PROFILE_APPLICATION);
            acursor.dispose();
        }
        return getHPCProfileApplication(value);
View Full Code Here

TOP

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

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.