com.ibm.jzos.wlm
Class QueryVirtualServerResult
- java.lang.Object
-
- com.ibm.jzos.wlm.QueryVirtualServerResult
-
public class QueryVirtualServerResult extends java.lang.ObjectAn object containing results from a
QueryVirtualServernative 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:
QueryVirtualServer
-
-
Field Summary
Fields Modifier and Type Field and Description static intCEC_CAPACITY_STATUS_NOMINALMachine is running at nomimal capacitystatic intCEC_CAPACITY_STATUS_REDEXTCONDMachine is running with reduced capacity due to an exception condition external to the machine (e.g.static intCEC_CAPACITY_STATUS_REDMACHEXMachine is running with reduced capacity due to a machine exception condition (e.g.static intCEC_CAPACITY_STATUS_REDMACHNOEXMachine is running with reduced capacity due to a non-exception machine condition (e.g.static intCEC_CAPACITY_STATUS_REDMANUALMachine is running with reduced capacity due to the setting of a manual controlstatic intCEC_CAPACITY_STATUS_UNDEFINEDCapacity status is undefined (not supported by hardware)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description longgetCecCapacity()intgetCecCapacityStatus()java.lang.StringgetCecMachineType()java.lang.StringgetCecManufacturerName()java.lang.StringgetCecModelId()java.lang.StringgetCecPlantOfManufacture()java.lang.StringgetCecSequenceCode()longgetImageCapacity()intgetImageLparId()java.lang.StringgetImageLparName()intgetVersion()Answer the Query Virtual Server (QVS) result version number.longgetVmCapacity()java.lang.StringgetVmName()booleanisCecValid()booleanisImageValid()booleanisVmValid()
-
-
-
Field Detail
-
CEC_CAPACITY_STATUS_UNDEFINED
public static final int CEC_CAPACITY_STATUS_UNDEFINED
Capacity status is undefined (not supported by hardware)- See Also:
- Constant Field Values
-
CEC_CAPACITY_STATUS_NOMINAL
public static final int CEC_CAPACITY_STATUS_NOMINAL
Machine is running at nomimal capacity- See Also:
- Constant Field Values
-
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:
- Constant Field Values
-
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:
- Constant Field Values
-
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:
- Constant Field Values
-
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:
- Constant Field Values
-
-
Method Detail
-
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 java.lang.String getCecMachineType()
- Returns:
- the CEC Machine Type. If !isCecValid(), return null.
-
getCecModelId
public java.lang.String getCecModelId()
- Returns:
- the CEC Model ID. If !isCecValid(), return null.
-
getCecSequenceCode
public java.lang.String getCecSequenceCode()
- Returns:
- the CEC Sequence Code. If !isCecValid(), return null.
-
getCecManufacturerName
public java.lang.String getCecManufacturerName()
- Returns:
- the CEC Manufacturer Name. If !isCecValid(), return null.
-
getCecPlantOfManufacture
public java.lang.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 java.lang.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 java.lang.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.
-
-