Package org.ggf.schemas.jsdl.x2005.x11.jsdl

Examples of org.ggf.schemas.jsdl.x2005.x11.jsdl.ApplicationType


    }
  }


  public static ApplicationType getOrCreateApplication(JobDefinitionType value) {
    JobDescriptionType jobDescr = getOrCreateJobDescription(value);
    if (!jobDescr.isSetApplication()) {
      jobDescr.addNewApplication();
    }
    return jobDescr.getApplication();
  }
View Full Code Here


    }
    return value.getJobDescription();
  }

  public static JobIdentificationType getOrCreateJobIdentification(JobDefinitionType value) {
    JobDescriptionType descr = getOrCreateJobDescription(value);
    if (descr.getJobIdentification() == null) {
      return descr.addNewJobIdentification();
    }
    return descr.getJobIdentification();
  }
View Full Code Here

    }
    return jobResources.getOperatingSystem();
  }

  public static ResourcesType getOrCreateResources(JobDefinitionType value) {
    JobDescriptionType jobDescr = getOrCreateJobDescription(value);
    if (!jobDescr.isSetResources()) {
      jobDescr.addNewResources();
    }
    return jobDescr.getResources();
  }
View Full Code Here

    getOrCreateJobIdentification(value).setJobName(name);
  }

  public static void setOperatingSystemRequirements(JobDefinitionType value, OSRequirement osType) {
    if(osType == null || osType.getOSType() == null) return;
    OperatingSystemType os_Type = getOrCreateOperatingSystem(value);
    OperatingSystemTypeType ostt = os_Type.addNewOperatingSystemType();
    ostt.setOperatingSystemName(OperatingSystemTypeEnumeration.Enum.forString(osType.getOSType().getValue()));
    if(osType.getOSVersion() != null)
    {
      os_Type.setOperatingSystemVersion(osType.getOSVersion());
    }
  }
View Full Code Here

    getOrCreateJobIdentification(value).setJobName(name);
  }

  public static void setOperatingSystemRequirements(JobDefinitionType value, OSRequirement osType) {
    if(osType == null || osType.getOSType() == null) return;
    OperatingSystemType os_Type = getOrCreateOperatingSystem(value);
    OperatingSystemTypeType ostt = os_Type.addNewOperatingSystemType();
    ostt.setOperatingSystemName(OperatingSystemTypeEnumeration.Enum.forString(osType.getOSType().getValue()));
    if(osType.getOSVersion() != null)
    {
      os_Type.setOperatingSystemVersion(osType.getOSVersion());
    }
  }
View Full Code Here

  }

  public static void setOperatingSystemRequirements(JobDefinitionType value, OSRequirement osType) {
    if(osType == null || osType.getOSType() == null) return;
    OperatingSystemType os_Type = getOrCreateOperatingSystem(value);
    OperatingSystemTypeType ostt = os_Type.addNewOperatingSystemType();
    ostt.setOperatingSystemName(OperatingSystemTypeEnumeration.Enum.forString(osType.getOSType().getValue()));
    if(osType.getOSVersion() != null)
    {
      os_Type.setOperatingSystemVersion(osType.getOSVersion());
    }
  }
View Full Code Here

  }

  public static void setOperatingSystemRequirements(JobDefinitionType value, OSRequirement osType) {
    if(osType == null || osType.getOSType() == null) return;
    OperatingSystemType os_Type = getOrCreateOperatingSystem(value);
    OperatingSystemTypeType ostt = os_Type.addNewOperatingSystemType();
    ostt.setOperatingSystemName(OperatingSystemTypeEnumeration.Enum.forString(osType.getOSType().getValue()));
    if(osType.getOSVersion() != null)
    {
      os_Type.setOperatingSystemVersion(osType.getOSVersion());
    }
  }
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

TOP

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