Examples of OperatingSystemType


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

    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

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

    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

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

    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

Examples of org.ogf.schemas.jsdl.OperatingSystemType

    }

    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

Examples of org.rhq.core.system.OperatingSystemType

public class WindowsPlatformDiscoveryComponent extends PlatformDiscoveryComponent {
    @Override
    protected boolean isPlatformSupported(ResourceDiscoveryContext context) {
        try {
            SystemInfo systemInfo = context.getSystemInformation();
            OperatingSystemType osType = systemInfo.getOperatingSystemType();

            boolean windows = (osType == OperatingSystemType.WINDOWS);

            return windows;
        } catch (Exception e) {
View Full Code Here

Examples of org.rhq.core.system.OperatingSystemType

     */
    private String getScriptBaseName(SystemInfo sysInfo) {
        String extension;

        try {
            OperatingSystemType osType = sysInfo.getOperatingSystemType();

            if (osType == OperatingSystemType.JAVA) {
                String osName = System.getProperty("os.name", "").toLowerCase();
                osType = osName.contains("windows") ? OperatingSystemType.WINDOWS : OperatingSystemType.LINUX;
            }
View Full Code Here

Examples of org.rhq.core.system.OperatingSystemType

     */
    private String getBaseName(SystemInfo sysInfo) {
        String location = null;

        try {
            OperatingSystemType osType = sysInfo.getOperatingSystemType();

            if (osType == OperatingSystemType.JAVA) {
                String osName = System.getProperty("os.name", "").toLowerCase();
                osType = osName.contains("windows") ? OperatingSystemType.WINDOWS : OperatingSystemType.LINUX;
            }
View Full Code Here

Examples of org.rhq.core.system.OperatingSystemType

     */
    private String getBaseName(SystemInfo sysInfo) {
        String location = null;

        try {
            OperatingSystemType osType = sysInfo.getOperatingSystemType();

            if (osType == OperatingSystemType.JAVA) {
                String osName = System.getProperty("os.name", "").toLowerCase();
                osType = osName.contains("windows") ? OperatingSystemType.WINDOWS : OperatingSystemType.LINUX;
            }
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.