Module ibm.jzos

Class QueryVirtualServerResult

java.lang.Object
com.ibm.jzos.wlm.QueryVirtualServerResult

public class QueryVirtualServerResult extends Object

An object containing results from a QueryVirtualServer native call to z/OS SYSEVENT QVS.

For more information on SYSEVENT QVS, please refer to "z/OS MVS Authorized Assembler Services Reference SET-WTO".

Since:
2.4.10
See Also:
  • Field Details

    • CEC_CAPACITY_STATUS_UNDEFINED

      public static final int CEC_CAPACITY_STATUS_UNDEFINED
      Capacity status is undefined (not supported by hardware)
      See Also:
    • CEC_CAPACITY_STATUS_NOMINAL

      public static final int CEC_CAPACITY_STATUS_NOMINAL
      Machine is running at nomimal capacity
      See Also:
    • CEC_CAPACITY_STATUS_REDMANUAL

      public static final int CEC_CAPACITY_STATUS_REDMANUAL
      Machine is running with reduced capacity due to the setting of a manual control
      See Also:
    • CEC_CAPACITY_STATUS_REDMACHEX

      public static final int CEC_CAPACITY_STATUS_REDMACHEX
      Machine is running with reduced capacity due to a machine exception condition (e.g. cooling problem)
      See Also:
    • CEC_CAPACITY_STATUS_REDMACHNOEX

      public static final int CEC_CAPACITY_STATUS_REDMACHNOEX
      Machine is running with reduced capacity due to a non-exception machine condition (e.g. firmware update)
      See Also:
    • CEC_CAPACITY_STATUS_REDEXTCOND

      public static final int CEC_CAPACITY_STATUS_REDEXTCOND
      Machine is running with reduced capacity due to an exception condition external to the machine (e.g. excessive ambient temperature)
      See Also:
  • Method Details

    • getVersion

      public int getVersion()
      Answer the Query Virtual Server (QVS) result version number.
    • isCecValid

      public boolean isCecValid()
      Returns:
      true if the physical hardware level information is valid, false otherwise.
    • isImageValid

      public boolean isImageValid()
      Returns:
      true if the logical partition level information is valid. Return false if not running in logical partition mode.
    • isVmValid

      public boolean isVmValid()
      Returns:
      true if the virtual machine information is valid. Return false if not running in a virtual machine.
    • getCecCapacityStatus

      public int getCecCapacityStatus()
      Returns:
      The CEC capacity status. If isCecValid(), then return one of the CEC_CAPACITY_STATUS_XXXX values, otherwise return -1.
    • getCecMachineType

      public String getCecMachineType()
      Returns:
      the CEC Machine Type. If !isCecValid(), return null.
    • getCecModelId

      public String getCecModelId()
      Returns:
      the CEC Model ID. If !isCecValid(), return null.
    • getCecSequenceCode

      public String getCecSequenceCode()
      Returns:
      the CEC Sequence Code. If !isCecValid(), return null.
    • getCecManufacturerName

      public String getCecManufacturerName()
      Returns:
      the CEC Manufacturer Name. If !isCecValid(), return null.
    • getCecPlantOfManufacture

      public String getCecPlantOfManufacture()
      Returns:
      the CEC Plant of Manufacture. If !isCecValid(), return null.
    • getCecCapacity

      public long getCecCapacity()
      Returns:
      the CEC Capacity. The value is in millions of service units per hour (MSU). If !isCecValid(), return -1.
    • getImageLparName

      public String getImageLparName()
      Returns:
      the Image LPAR Name. If !isImageValid(), return null.
    • getImageLparId

      public int getImageLparId()
      Returns:
      the Image LPAR ID. If !isImageValid(), return -1.
    • getImageCapacity

      public long getImageCapacity()
      Returns:
      the Image Capacity. The value is in millions of service units per hour (MSU). If !isImageValid(), return -1.
    • getVmName

      public String getVmName()
      Returns:
      the Virtual Machine Name. If !isVmValid(), return null.
    • getVmCapacity

      public long getVmCapacity()
      Returns:
      the Virtual Machine Capacity. The value is in millions of service units per hour (MSU). If !isVmValid(), return -1.