com.ibm.jzos.wlm
Class QueryVirtualServerResult
- java.lang.Object
-
- com.ibm.jzos.wlm.QueryVirtualServerResult
-
public class QueryVirtualServerResult extends java.lang.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:
QueryVirtualServer
-
-
Field Summary
Fields Modifier and Type Field and Description static int
CEC_CAPACITY_STATUS_NOMINAL
Machine is running at nomimal capacitystatic int
CEC_CAPACITY_STATUS_REDEXTCOND
Machine is running with reduced capacity due to an exception condition external to the machine (e.g.static int
CEC_CAPACITY_STATUS_REDMACHEX
Machine is running with reduced capacity due to a machine exception condition (e.g.static int
CEC_CAPACITY_STATUS_REDMACHNOEX
Machine is running with reduced capacity due to a non-exception machine condition (e.g.static int
CEC_CAPACITY_STATUS_REDMANUAL
Machine is running with reduced capacity due to the setting of a manual controlstatic int
CEC_CAPACITY_STATUS_UNDEFINED
Capacity status is undefined (not supported by hardware)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description long
getCecCapacity()
int
getCecCapacityStatus()
java.lang.String
getCecMachineType()
java.lang.String
getCecManufacturerName()
java.lang.String
getCecModelId()
java.lang.String
getCecPlantOfManufacture()
java.lang.String
getCecSequenceCode()
long
getImageCapacity()
int
getImageLparId()
java.lang.String
getImageLparName()
int
getVersion()
Answer the Query Virtual Server (QVS) result version number.long
getVmCapacity()
java.lang.String
getVmName()
boolean
isCecValid()
boolean
isImageValid()
boolean
isVmValid()
-
-
-
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.
-
-