Examples of ApplicationType


Examples of org.ogce.schemas.gfac.documents.ApplicationType

      if (method == null) {
        method = pt.addNewMethod();
      }
      method.setMethodName(op.getMethodName());
      method.setMethodDescription(op.getMethodDescription());
      ApplicationType appType = method.getApplication();
      if (appType == null) {
        appType = method.addNewApplication();
      }
      appType.setParamValuesOnly(true);
      ApplicationName appNameType = appType.getApplicationName();
      if (appNameType == null) {
        appNameType = appType.addNewApplicationName();
      }
      QName appName = new QName(serviceInfo.getObjectNamespace(), serviceInfo.getApplicationName());
      appNameType.setStringValue(appName.getLocalPart());
      appNameType.setTargetNamespace(appName.getNamespaceURI());
      appType.setApplicationDescription(op.getMethodDescription());

      // Boolean parameters from Service screen
      if (op.isStageOutputDataFiles()) {
        method.setStageOutputDataFiles(true);
      }

      if (op.isForceFileStagingToWorkDir()) {
        method.setForceFileStagingToWorkDir(true);
      }

      if (op.isUseLEADNameListFile()) {
        appType.setUseLEADNameListFile(true);
      }

      if (op.isUseLEADNameListPropertiesFile()) {
        appType.setUseLEADNameListPropertiesFile(true);
      }

      InputParameterType[] inputs = method.getInputParameterArray();
      HashMap<String, InputParameterType> inputMap = new HashMap<String, InputParameterType>();
      if (inputs != null) {
View Full Code Here

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

Examples of org.ogf.schemas.jsdl.ApplicationType

        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

Examples of org.ogf.schemas.jsdl.ApplicationType

        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

Examples of org.ogf.schemas.jsdl.ApplicationType

        }
    }

    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
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.