java.lang.Object
com.ibm.jzos.wlm.QueryVirtualServerResult
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Machine is running at nomimal capacitystatic final int
Machine is running with reduced capacity due to an exception condition external to the machine (e.g.static final int
Machine is running with reduced capacity due to a machine exception condition (e.g.static final int
Machine is running with reduced capacity due to a non-exception machine condition (e.g.static final int
Machine is running with reduced capacity due to the setting of a manual controlstatic final int
Capacity status is undefined (not supported by hardware) -
Method Summary
Modifier and TypeMethodDescriptionlong
int
long
int
int
Answer the Query Virtual Server (QVS) result version number.long
boolean
boolean
boolean
-
Field Details
-
CEC_CAPACITY_STATUS_UNDEFINED
public static final int CEC_CAPACITY_STATUS_UNDEFINEDCapacity status is undefined (not supported by hardware)- See Also:
-
CEC_CAPACITY_STATUS_NOMINAL
public static final int CEC_CAPACITY_STATUS_NOMINALMachine is running at nomimal capacity- See Also:
-
CEC_CAPACITY_STATUS_REDMANUAL
public static final int CEC_CAPACITY_STATUS_REDMANUALMachine 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_REDMACHEXMachine 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_REDMACHNOEXMachine 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_REDEXTCONDMachine 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
- Returns:
- the CEC Machine Type. If !isCecValid(), return null.
-
getCecModelId
- Returns:
- the CEC Model ID. If !isCecValid(), return null.
-
getCecSequenceCode
- Returns:
- the CEC Sequence Code. If !isCecValid(), return null.
-
getCecManufacturerName
- Returns:
- the CEC Manufacturer Name. If !isCecValid(), return null.
-
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
- 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
- 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.
-