|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.as400.resource.Resource | +--com.ibm.as400.resource.ChangeableResource | +--com.ibm.as400.resource.RSoftwareResource
The RSoftwareResource class represents an AS/400 software product.
The following attribute IDs are supported:
Use any of these attribute IDs with
getAttributeValue()
to access the attribute values for an RSoftwareResource.
// Create an RSoftwareResource object to refer to a specific software product.
AS400 system = new AS400("MYSYSTEM", "MYUSERID", "MYPASSWORD");
RSoftwareResource product = new RSoftwareResource(system, "5722JC1");
// Get the load error indicator.
String loadErrorIndicator = (String)product.getAttributeValue(RSoftwareResource.LOAD_ERROR_INDICATOR);
Field Summary | |
static java.lang.String |
LEVEL
Attribute ID for level. |
static java.lang.String |
LOAD_ERROR_INDICATOR
Attribute ID for load error indicator. |
static java.lang.String |
LOAD_ERROR_INDICATOR_ERROR
Attribute value indicating that an error was found the last time that the state of this load was checked or updated. |
static java.lang.String |
LOAD_ERROR_INDICATOR_NONE
Attribute value indicating that no error was found the last time that the state of this load was checked or updated. |
static java.lang.String |
LOAD_ID
Attribute ID for load ID. |
static java.lang.String |
LOAD_ID_CODE
Attribute value indicating the code load. |
static java.lang.String |
LOAD_STATE
Attribute ID for load state. |
static java.lang.String |
LOAD_TYPE
Attribute ID for load type. |
static java.lang.String |
LOAD_TYPE_CODE
Attribute value indicating that the load is a code load. |
static java.lang.String |
LOAD_TYPE_LANGUAGE
Attribute value indicating that the load is a language load. |
static java.lang.String |
MINIMUM_BASE_VRM
Attribute ID for minimum base VRM. |
static java.lang.String |
MINIMUM_BASE_VRM_MATCH
Attribute value indicating the release of the option matches that of the base. |
static java.lang.String |
MINIMUM_TARGET_RELEASE
Attribute ID for minimum target release. |
static java.lang.String |
PRIMARY_LANGUAGE_LOAD_ID
Attribute ID for primary language load ID. |
static java.lang.String |
PRODUCT_ID
Attribute ID for product ID. |
static java.lang.String |
PRODUCT_ID_OPERATING_SYSTEM
Attribute value indicating the product ID for the operating system. |
static java.lang.String |
PRODUCT_OPTION
Attribute ID for product option. |
static java.lang.String |
PRODUCT_OPTION_BASE
Attribute value indicating the base option. |
static java.lang.String |
REGISTRATION_TYPE
Attribute ID for registration type. |
static java.lang.String |
REGISTRATION_VALUE
Attribute ID for registration value. |
static java.lang.String |
RELEASE_LEVEL
Attribute ID for release level. |
static java.lang.String |
RELEASE_LEVEL_CURRENT
Attribute value indicating the release level of the currently installed operating system. |
static java.lang.String |
RELEASE_LEVEL_ONLY
Attribute value indicating the only release level for which a product load is found. |
static java.lang.String |
RELEASE_LEVEL_PREVIOUS
Attribute value indicating the previous release with modification level 0 of the operating system. |
static java.lang.String |
REQUIREMENTS_MET
Attribute ID for requirements met. |
static java.lang.String |
REQUIREMENTS_MET_ALL
Attribute value indicating that the releases of the base and option meet all requirements. |
static java.lang.String |
REQUIREMENTS_MET_TOO_OLD_COMPARED_TO_BASE
Attribute value indicating that the release of the option is too old compared to the base. |
static java.lang.String |
REQUIREMENTS_MET_TOO_OLD_COMPARED_TO_OPTION
Attribute value indicating that the release of the base is too old compared to the option. |
static java.lang.String |
REQUIREMENTS_MET_UNKNOWN
Attribute value indicating that not enough information is available to determine if the release requirements have been met. |
static java.lang.String |
SUPPORTED_FLAG
Attribute ID for requirements met. |
static java.lang.String |
SYMBOLIC_LOAD_STATE
Attribute ID for symbolic load state. |
static java.lang.String |
SYMBOLIC_LOAD_STATE_CREATED
Attribute value indicating that the product load object for this load exists. |
static java.lang.String |
SYMBOLIC_LOAD_STATE_DAMAGED
Attribute value indicating that the product load object has been damaged. |
static java.lang.String |
SYMBOLIC_LOAD_STATE_DEFINED
Attribute value indicating that the load is defined. |
static java.lang.String |
SYMBOLIC_LOAD_STATE_INSTALLED
Attribute value indicating that the product load object was loaded. |
static java.lang.String |
SYMBOLIC_LOAD_STATE_LOADED
Attribute value indicating that the product load object is being loaded or deleted. |
static java.lang.String |
SYMBOLIC_LOAD_STATE_PACKAGED
Attribute value indicating that the product load object has been packaged. |
Constructor Summary | |
RSoftwareResource()
Constructs an RSoftwareResource object. |
|
RSoftwareResource(AS400 system,
java.lang.String productID)
Constructs an RSoftwareResource object. |
|
RSoftwareResource(AS400 system,
java.lang.String productID,
java.lang.String releaseLevel,
java.lang.String productOption)
Constructs an RSoftwareResource object. |
|
RSoftwareResource(AS400 system,
java.lang.String productID,
java.lang.String releaseLevel,
java.lang.String productOption,
java.lang.String loadID)
Constructs an RSoftwareResource object. |
Method Summary | |
protected void |
establishConnection()
Establishes the connection to the AS/400. |
protected void |
freezeProperties()
Freezes any property changes. |
java.lang.Object |
getAttributeUnchangedValue(java.lang.Object attributeID)
Returns the unchanged value of an attribute. |
java.lang.String |
getLoadID()
Returns the load ID. |
java.lang.String |
getProductID()
Returns the product ID. |
java.lang.String |
getProductOption()
Returns the product option. |
java.lang.String |
getReleaseLevel()
Returns the release level. |
void |
refreshAttributeValues()
Refreshes the values for all attributes. |
void |
setLoadID(java.lang.String loadID)
Sets the load ID. |
void |
setProductID(java.lang.String productID)
Sets the product ID. |
void |
setProductOption(java.lang.String productOption)
Sets the product option. |
void |
setReleaseLevel(java.lang.String releaseLevel)
Sets the release level. |
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final java.lang.String LEVEL
Lxx
for the operating system and Licensed Internal
Code, or "" for all other products.public static final java.lang.String LOAD_ERROR_INDICATOR
public static final java.lang.String LOAD_ERROR_INDICATOR_ERROR
LOAD_ERROR_INDICATOR_ERROR
public static final java.lang.String LOAD_ERROR_INDICATOR_NONE
LOAD_ERROR_INDICATOR_NONE
public static final java.lang.String LOAD_ID
public static final java.lang.String LOAD_ID_CODE
LOAD_ID
public static final java.lang.String LOAD_STATE
public static final java.lang.String LOAD_TYPE
public static final java.lang.String LOAD_TYPE_CODE
LOAD_TYPE
public static final java.lang.String LOAD_TYPE_LANGUAGE
LOAD_TYPE
public static final java.lang.String MINIMUM_BASE_VRM
VxRxMx
.
public static final java.lang.String MINIMUM_BASE_VRM_MATCH
MINIMUM_BASE_VRM
public static final java.lang.String MINIMUM_TARGET_RELEASE
VxRxMx
.public static final java.lang.String PRIMARY_LANGUAGE_LOAD_ID
public static final java.lang.String PRODUCT_ID
public static final java.lang.String PRODUCT_ID_OPERATING_SYSTEM
PRODUCT_ID
public static final java.lang.String PRODUCT_OPTION
public static final java.lang.String PRODUCT_OPTION_BASE
PRODUCT_OPTION
public static final java.lang.String REGISTRATION_TYPE
public static final java.lang.String REGISTRATION_VALUE
public static final java.lang.String RELEASE_LEVEL
public static final java.lang.String RELEASE_LEVEL_CURRENT
RELEASE_LEVEL
public static final java.lang.String RELEASE_LEVEL_ONLY
RELEASE_LEVEL
public static final java.lang.String RELEASE_LEVEL_PREVIOUS
RELEASE_LEVEL
public static final java.lang.String REQUIREMENTS_MET
public static final java.lang.String REQUIREMENTS_MET_UNKNOWN
REQUIREMENTS_MET
public static final java.lang.String REQUIREMENTS_MET_ALL
REQUIREMENTS_MET
public static final java.lang.String REQUIREMENTS_MET_TOO_OLD_COMPARED_TO_BASE
REQUIREMENTS_MET
public static final java.lang.String REQUIREMENTS_MET_TOO_OLD_COMPARED_TO_OPTION
REQUIREMENTS_MET
public static final java.lang.String SUPPORTED_FLAG
public static final java.lang.String SYMBOLIC_LOAD_STATE
public static final java.lang.String SYMBOLIC_LOAD_STATE_DEFINED
SYMBOLIC_LOAD_STATE
public static final java.lang.String SYMBOLIC_LOAD_STATE_CREATED
SYMBOLIC_LOAD_STATE
public static final java.lang.String SYMBOLIC_LOAD_STATE_PACKAGED
SYMBOLIC_LOAD_STATE
public static final java.lang.String SYMBOLIC_LOAD_STATE_DAMAGED
SYMBOLIC_LOAD_STATE
public static final java.lang.String SYMBOLIC_LOAD_STATE_LOADED
SYMBOLIC_LOAD_STATE
public static final java.lang.String SYMBOLIC_LOAD_STATE_INSTALLED
SYMBOLIC_LOAD_STATE
Constructor Detail |
public RSoftwareResource()
public RSoftwareResource(AS400 system, java.lang.String productID)
system
- The system.productID
- The product ID, or PRODUCT_ID_OPERATING_SYSTEM
to refer to the operating system.public RSoftwareResource(AS400 system, java.lang.String productID, java.lang.String releaseLevel, java.lang.String productOption)
system
- The system.productID
- The product ID, or PRODUCT_ID_OPERATING_SYSTEM
to refer to the operating system.releaseLevel
- The release level. Possible values are:
VxRxMx
.
productOption
- The option number for which is being requested, or
PRODUCT_OPTION_BASE for the base option.public RSoftwareResource(AS400 system, java.lang.String productID, java.lang.String releaseLevel, java.lang.String productOption, java.lang.String loadID)
system
- The system.productID
- The product ID, or PRODUCT_ID_OPERATING_SYSTEM
to refer to the operating system.releaseLevel
- The release level. Possible values are:
VxRxMx
.
productOption
- The option number for which is being requested, or
PRODUCT_OPTION_BASE for the base option.loadID
- The load ID, or LOAD_ID_CODE for the code load.Method Detail |
protected void establishConnection() throws ResourceException
The method is called by the resource framework automatically when the connection needs to be established.
protected void freezeProperties() throws ResourceException
The method is called by the resource framework automatically when the properties need to be frozen.
public java.lang.Object getAttributeUnchangedValue(java.lang.Object attributeID) throws ResourceException
attributeID
- Identifies the attribute.public java.lang.String getLoadID()
public java.lang.String getProductID()
public java.lang.String getProductOption()
public java.lang.String getReleaseLevel()
public void refreshAttributeValues() throws ResourceException
public void setLoadID(java.lang.String loadID)
The default value is LOAD_ID_CODE.
loadID
- The load ID, or LOAD_ID_CODE for the code load.public void setProductID(java.lang.String productID)
The default value is PRODUCT_ID_OPERATING_SYSTEM.
productID
- The product ID, or PRODUCT_ID_OPERATING_SYSTEM
to refer to the operating system.public void setProductOption(java.lang.String productOption)
The default value is PRODUCT_OPTION_BASE.
productOption
- The option number for which is being requested, or
PRODUCT_OPTION_BASE for the base option.public void setReleaseLevel(java.lang.String releaseLevel)
The default value is RELEASE_LEVEL_CURRENT.
releaseLevel
- The release level. Possible values are:
VxRxMx
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |