Package org.ogf.schemas.jsdl.posix

Examples of org.ogf.schemas.jsdl.posix.EnvironmentType


    public static final String NUMBEROFPROCESSES = "NumberOfProcesses";
    public static final String THREADSPERHOST = "ThreadsPerHost";

    public static EnvironmentType addEnvVariable(JobDefinitionType def, String name, String value) {
        POSIXApplicationType posixApp = getOrCreatePOSIXApplication(def);
        EnvironmentType newEnv = posixApp.addNewEnvironment();
        newEnv.setName(name);
        newEnv.setStringValue(value);
        return newEnv;
    }
View Full Code Here


    public static void createApplicationEnvironment(JobDefinitionType value, NameValuePairType[] nameValuePairs,
            HpcApplicationDeploymentType appDepType) {

        if (isParallelJob(appDepType)) {
            for (NameValuePairType nv : nameValuePairs) {
                EnvironmentType envType = JSDLUtils.getOrCreateSPMDApplication(value).addNewEnvironment();
                envType.setName(nv.getName());
                envType.setStringValue(nv.getValue());
            }
        } else {
            for (NameValuePairType nv : nameValuePairs) {
                EnvironmentType envType = JSDLUtils.getOrCreatePOSIXApplication(value).addNewEnvironment();
                envType.setName(nv.getName());
                envType.setStringValue(nv.getValue());
            }
        }

    }
View Full Code Here

TOP

Related Classes of org.ogf.schemas.jsdl.posix.EnvironmentType

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.