Package org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05

Examples of org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.UpdateDocument$Factory


    else 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.getIndividualDiskSpace();
  }

  public static org.ggf.schemas.jsdl.x2005.x11.jsdl.RangeValueType getOrCreateIndividualPhysicalMemory(JobDefinitionType value) {

    ResourcesType jobResources = getOrCreateResources(value);
    if (!jobResources.isSetIndividualPhysicalMemory()) {
      jobResources.addNewIndividualPhysicalMemory();
    }
    return jobResources.getIndividualPhysicalMemory();
  }
View Full Code Here

    return descr.getJobIdentification();
  }

  public static OperatingSystemType getOrCreateOperatingSystem(JobDefinitionType value)
  {
    ResourcesType jobResources = getOrCreateResources(value);       
    if(!jobResources.isSetOperatingSystem()) {
      jobResources.addNewOperatingSystem();
    }
    return jobResources.getOperatingSystem();
  }
View Full Code Here

  }


  public static org.ggf.schemas.jsdl.x2005.x11.jsdl.RangeValueType getOrCreateTotalCPUCount(JobDefinitionType value) {

    ResourcesType jobResources = getOrCreateResources(value);
    if ( !jobResources.isSetTotalCPUCount() ) {
      jobResources.addNewTotalCPUCount();
    }
    return jobResources.getTotalCPUCount();
  }
View Full Code Here

  }


  public static org.ggf.schemas.jsdl.x2005.x11.jsdl.RangeValueType getOrCreateTotalResourceCount(JobDefinitionType value) {

    ResourcesType jobResources = getOrCreateResources(value);
    if ( !jobResources.isSetTotalResourceCount())
    {
      jobResources.addNewTotalResourceCount();
    }
    return jobResources.getTotalResourceCount();
  }
View Full Code Here

    if((flags & FLAG_OVERWRITE) != 0) creationFlag = CreationFlagEnumeration.OVERWRITE;
    if((flags & FLAG_APPEND) != 0) creationFlag = CreationFlagEnumeration.APPEND;
    boolean deleteOnTerminate = (flags & FLAG_DELETE_ON_TERMINATE) != 0;
    newDS.setCreationFlag(creationFlag);
    newDS.setDeleteOnTermination(deleteOnTerminate);
    SourceTargetType target = newDS.addNewTarget();

    try {
      uri = (uri == null) ? null : URIUtils.encodeAll(uri);
    } catch (URIException e) {
    }
    target.setURI(uri);
    newDS.setFileName(file);
    if (fileSystem != null && !fileSystem.equals("Work")) {  //$NON-NLS-1$
      newDS.setFilesystemName(fileSystem);
    }
  }
View Full Code Here

    if((flags & FLAG_OVERWRITE) != 0) creationFlag = CreationFlagEnumeration.OVERWRITE;
    if((flags & FLAG_APPEND) != 0) creationFlag = CreationFlagEnumeration.APPEND;
    boolean deleteOnTerminate = (flags & FLAG_DELETE_ON_TERMINATE) != 0;
    newDS.setCreationFlag(creationFlag);
    newDS.setDeleteOnTermination(deleteOnTerminate);
    SourceTargetType source = newDS.addNewSource();
    source.setURI(uri);
    newDS.setFileName(file);
    if (fileSystem != null && !fileSystem.equals("Work")) {  //$NON-NLS-1$
      newDS.setFilesystemName(fileSystem);
    }
  }
View Full Code Here

 
 
  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

          appDepType.getApplicationEnvironmentArray(), appDepType);
    }

   
    if (appDepType.getExecutableLocation() != null) {
      FileNameType fNameType = FileNameType.Factory.newInstance();
      fNameType.setStringValue(appDepType.getExecutableLocation());
      if(isParallelJob(appDepType)) {
        JSDLUtils.getOrCreateSPMDApplication(value).setExecutable(fNameType);
        JSDLUtils.getSPMDApplication(value).setSPMDVariation(getSPMDVariation(appDepType));
       
        if(getValueFromMap(appDepType, JSDLUtils.NUMBEROFPROCESSES)!=null){
View Full Code Here

TOP

Related Classes of org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.UpdateDocument$Factory

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.