Examples of ApplicationType


Examples of org.ggf.schemas.jsdl.x2005.x11.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.ggf.schemas.jsdl.x2005.x11.jsdl.ApplicationType

  }

 
  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.ggf.schemas.jsdl.x2005.x11.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

Examples of org.jmanage.core.config.ApplicationType

        AccessController.checkAccess(
                context.getServiceContext(), ACL_ADD_APPLICATIONS);

        ConnectorForm connForm = (ConnectorForm)actionForm;
        ApplicationType appType =
                ApplicationTypes.getApplicationType(connForm.getType());

        assert appType.getId().equals("connector"): "Invalid app type: " + connForm.getType();

        ModuleConfig moduleConfig = appType.getModule();
        MetaApplicationConfig metaAppConfig = moduleConfig.getMetaApplicationConfig();
        request.setAttribute(RequestAttributes.META_APP_CONFIG, metaAppConfig);

        if (connForm.getConnectorId() == null
                || connForm.getConnectorId().length() == 0
View Full Code Here

Examples of org.jresearch.flexess.core.model.conf.ApplicationType

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setType(ApplicationType newType) {
    ApplicationType oldType = type;
    type = newType == null ? TYPE_EDEFAULT : newType;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, ConfPackage.APPLICATION__TYPE, oldType, type));
  }
View Full Code Here

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.ogce.schemas.gfac.documents.ApplicationType

    if (serviceMapType.getLifeTime() != null) {
      notAfterInactiveMinutes = serviceMapType.getLifeTime()
          .getNotAfterInactiveMinutes();
    }
    MethodType method = findOperationWithApplication(serviceMapType);
    ApplicationType appType = method.getApplication();
    ApplicationName appxbeanName = method.getApplication()
        .getApplicationName();
    String appName = new QName(appxbeanName.getTargetNamespace(),
        appxbeanName.getStringValue()).toString();
    MethodBean methodBean = new MethodBean(method.getMethodName(), method
        .getMethodDescription(), method.isSetStageOutputDataFiles(),
        method.isSetForceFileStagingToWorkDir(), appType
            .isSetUseLEADNameListFile(), appType
            .isSetUseLEADNameListPropertiesFile());

    InputParameterType[] inputparams = method.getInputParameterArray();
    for (int index = 0; index < inputparams.length; index++) {
View Full Code Here

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

                    {
                        throw new GFacSchemaException("Every user defined method must have one application associated with it");
                    }


                    ApplicationType app = method.getApplication();

                    if(app.getApplicationName() == null)
                    {
                        throw new GFacSchemaException("Application must have a name");
                    }

                    if(app.getApplicationName().getTargetNamespace() == null)
                    {
                        throw new GFacSchemaException("Application must have a target namespace");
                    }

                    InputParameterType[] inputs = method.getInputParameterArray();
View Full Code Here

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

    if (serviceMapType.getLifeTime() != null) {
      notAfterInactiveMinutes = serviceMapType.getLifeTime().getNotAfterInactiveMinutes();
    }
    MethodType method = GfacUtils.findOperationWithApplication(serviceMapType);
    ApplicationType appType = method.getApplication();
    ApplicationName appxbeanName = method.getApplication().getApplicationName();
    String appName = new QName(appxbeanName.getTargetNamespace(), appxbeanName.getStringValue()).toString();
    MethodBean methodBean = new MethodBean(method.getMethodName(), method.getMethodDescription(),
        method.isSetStageOutputDataFiles(), method.isSetForceFileStagingToWorkDir(),
        appType.isSetUseLEADNameListFile(), appType.isSetUseLEADNameListPropertiesFile());

    // Done to convert the parameter type of enum to string which was not
    // possible in JSF selectOneListbox. For inputText it works without
    // doing this change
    InputParameterType[] inputparams = method.getInputParameterArray();
View Full Code Here

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