Product instead, as this package may be removed in the future.public class RSoftwareResource extends ChangeableResource
LEVEL
LOAD_ERROR_INDICATOR
LOAD_ID
LOAD_STATE
LOAD_TYPE
MINIMUM_BASE_VRM
MINIMUM_TARGET_RELEASE
PRIMARY_LANGUAGE_LOAD_ID
PRODUCT_ID
PRODUCT_OPTION
REGISTRATION_TYPE
REGISTRATION_VALUE
RELEASE_LEVEL
REQUIREMENTS_MET
SUPPORTED_FLAG
SYMBOLIC_LOAD_STATE
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);
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
LEVEL
Deprecated.
Attribute ID for level.
|
static java.lang.String |
LOAD_ERROR_INDICATOR
Deprecated.
Attribute ID for load error indicator.
|
static java.lang.String |
LOAD_ERROR_INDICATOR_ERROR
Deprecated.
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
Deprecated.
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
Deprecated.
Attribute ID for load ID.
|
static java.lang.String |
LOAD_ID_CODE
Deprecated.
Attribute value indicating the code load.
|
static java.lang.String |
LOAD_STATE
Deprecated.
Attribute ID for load state.
|
static java.lang.String |
LOAD_TYPE
Deprecated.
Attribute ID for load type.
|
static java.lang.String |
LOAD_TYPE_CODE
Deprecated.
Attribute value indicating that the load is a code load.
|
static java.lang.String |
LOAD_TYPE_LANGUAGE
Deprecated.
Attribute value indicating that the load is a language load.
|
static java.lang.String |
MINIMUM_BASE_VRM
Deprecated.
Attribute ID for minimum base VRM.
|
static java.lang.String |
MINIMUM_BASE_VRM_MATCH
Deprecated.
Attribute value indicating the release of the option matches that of the base.
|
static java.lang.String |
MINIMUM_TARGET_RELEASE
Deprecated.
Attribute ID for minimum target release.
|
static java.lang.String |
PRIMARY_LANGUAGE_LOAD_ID
Deprecated.
Attribute ID for primary language load ID.
|
static java.lang.String |
PRODUCT_ID
Deprecated.
Attribute ID for product ID.
|
static java.lang.String |
PRODUCT_ID_OPERATING_SYSTEM
Deprecated.
Attribute value indicating the product ID for the operating system.
|
static java.lang.String |
PRODUCT_OPTION
Deprecated.
Attribute ID for product option.
|
static java.lang.String |
PRODUCT_OPTION_BASE
Deprecated.
Attribute value indicating the base option.
|
static java.lang.String |
REGISTRATION_TYPE
Deprecated.
Attribute ID for registration type.
|
static java.lang.String |
REGISTRATION_VALUE
Deprecated.
Attribute ID for registration value.
|
static java.lang.String |
RELEASE_LEVEL
Deprecated.
Attribute ID for release level.
|
static java.lang.String |
RELEASE_LEVEL_CURRENT
Deprecated.
Attribute value indicating the release level of the currently installed operating
system.
|
static java.lang.String |
RELEASE_LEVEL_ONLY
Deprecated.
Attribute value indicating the only release level
for which a product load is found.
|
static java.lang.String |
RELEASE_LEVEL_PREVIOUS
Deprecated.
Attribute value indicating the previous
release with modification level 0 of the operating system.
|
static java.lang.String |
REQUIREMENTS_MET
Deprecated.
Attribute ID for requirements met.
|
static java.lang.String |
REQUIREMENTS_MET_ALL
Deprecated.
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
Deprecated.
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
Deprecated.
Attribute value indicating that the release of the base is too old compared to the option.
|
static java.lang.String |
REQUIREMENTS_MET_UNKNOWN
Deprecated.
Attribute value indicating that not enough information is available to determine
if the release requirements have been met.
|
static java.lang.String |
SUPPORTED_FLAG
Deprecated.
Attribute ID for requirements met.
|
static java.lang.String |
SYMBOLIC_LOAD_STATE
Deprecated.
Attribute ID for symbolic load state.
|
static java.lang.String |
SYMBOLIC_LOAD_STATE_CREATED
Deprecated.
Attribute value indicating that the product load object for this load exists.
|
static java.lang.String |
SYMBOLIC_LOAD_STATE_DAMAGED
Deprecated.
Attribute value indicating that the product load object has been damaged.
|
static java.lang.String |
SYMBOLIC_LOAD_STATE_DEFINED
Deprecated.
Attribute value indicating that the
load is defined.
|
static java.lang.String |
SYMBOLIC_LOAD_STATE_INSTALLED
Deprecated.
Attribute value indicating that the product load object was loaded.
|
static java.lang.String |
SYMBOLIC_LOAD_STATE_LOADED
Deprecated.
Attribute value indicating that the product load object is being loaded or deleted.
|
static java.lang.String |
SYMBOLIC_LOAD_STATE_PACKAGED
Deprecated.
Attribute value indicating that the product load object has been packaged.
|
| Constructor and Description |
|---|
RSoftwareResource()
Deprecated.
Constructs an RSoftwareResource object.
|
RSoftwareResource(AS400 system,
java.lang.String productID)
Deprecated.
Constructs an RSoftwareResource object.
|
RSoftwareResource(AS400 system,
java.lang.String productID,
java.lang.String releaseLevel,
java.lang.String productOption)
Deprecated.
Constructs an RSoftwareResource object.
|
RSoftwareResource(AS400 system,
java.lang.String productID,
java.lang.String releaseLevel,
java.lang.String productOption,
java.lang.String loadID)
Deprecated.
Constructs an RSoftwareResource object.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
establishConnection()
Deprecated.
Establishes the connection to the system.
|
protected void |
freezeProperties()
Deprecated.
Freezes any property changes.
|
java.lang.Object |
getAttributeUnchangedValue(java.lang.Object attributeID)
Deprecated.
Returns the unchanged value of an attribute.
|
java.lang.String |
getLoadID()
Deprecated.
Returns the load ID.
|
java.lang.String |
getProductID()
Deprecated.
Returns the product ID.
|
java.lang.String |
getProductOption()
Deprecated.
Returns the product option.
|
java.lang.String |
getReleaseLevel()
Deprecated.
Returns the release level.
|
void |
refreshAttributeValues()
Deprecated.
Refreshes the values for all attributes.
|
void |
setLoadID(java.lang.String loadID)
Deprecated.
Sets the load ID.
|
void |
setProductID(java.lang.String productID)
Deprecated.
Sets the product ID.
|
void |
setProductOption(java.lang.String productOption)
Deprecated.
Sets the product option.
|
void |
setReleaseLevel(java.lang.String releaseLevel)
Deprecated.
Sets the release level.
|
cancelAttributeChanges, commitAttributeChanges, commitAttributeChanges, commitAttributeChanges, fireAttributeChangesCanceled, fireAttributeChangesCommitted, fireAttributeValueChanged, fireResourceCreated, fireResourceDeleted, getAttributeUnchangedValue, getAttributeValue, getAttributeValue, hasUncommittedAttributeChanges, initializeAttributeValue, setAttributeValue, setAttributeValueaddActiveStatusListener, addPropertyChangeListener, addResourceListener, addVetoableChangeListener, arePropertiesFrozen, equals, fireAttributeValuesRefreshed, fireBusy, fireIdle, firePropertyChange, fireVetoableChange, getAttributeMetaData, getAttributeMetaData, getPresentation, getResourceKey, getSystem, isBidiEnabled, isConnectionEstablished, removeActiveStatusListener, removePropertyChangeListener, removeResourceListener, removeVetoableChangeListener, setPresentation, setResourceKey, setSystem, toStringpublic 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
LOAD_ERROR_INDICATOR_ERROR
- An error was found the last time that the state of this load was checked
or updated.
LOAD_ERROR_INDICATOR_NONE
- No error was found the last time that the state of this load was checked
or updated.
public static final java.lang.String LOAD_ERROR_INDICATOR_ERROR
public static final java.lang.String LOAD_ERROR_INDICATOR_NONE
public static final java.lang.String LOAD_ID
public static final java.lang.String LOAD_ID_CODE
LOAD_ID,
Constant Field Valuespublic static final java.lang.String LOAD_STATE
public static final java.lang.String LOAD_TYPE
LOAD_TYPE_CODE - The load is a code load.
LOAD_TYPE_LANGUAGE - The load is a language load.
public static final java.lang.String LOAD_TYPE_CODE
LOAD_TYPE,
Constant Field Valuespublic static final java.lang.String LOAD_TYPE_LANGUAGE
LOAD_TYPE,
Constant Field Valuespublic static final java.lang.String MINIMUM_BASE_VRM
MINIMUM_BASE_VRM_MATCH - The release of the option
matches that of the base.
VxRxMx.
public static final java.lang.String MINIMUM_BASE_VRM_MATCH
MINIMUM_BASE_VRM,
Constant Field Valuespublic 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,
Constant Field Valuespublic static final java.lang.String PRODUCT_OPTION
PRODUCT_OPTION_BASE - The
base option.
public static final java.lang.String PRODUCT_OPTION_BASE
PRODUCT_OPTION,
Constant Field Valuespublic 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,
Constant Field Valuespublic static final java.lang.String RELEASE_LEVEL_ONLY
RELEASE_LEVEL,
Constant Field Valuespublic static final java.lang.String RELEASE_LEVEL_PREVIOUS
RELEASE_LEVEL,
Constant Field Valuespublic static final java.lang.String REQUIREMENTS_MET
REQUIREMENTS_MET_UNKNOWN - There is
not enough information available to determine if the release requirements have
been met, or if LOAD_TYPE is set to
LOAD_TYPE_LANGUAGE.
REQUIREMENTS_MET_ALL - The releases
of the base and option meet all requirements.
REQUIREMENTS_MET_TOO_OLD_COMPARED_TO_BASE -
The release of the option is too old compared to the base.
REQUIREMENTS_MET_TOO_OLD_COMPARED_TO_BASE -
The release of the base is too old compared to the option.
public static final java.lang.String REQUIREMENTS_MET_UNKNOWN
REQUIREMENTS_MET,
Constant Field Valuespublic static final java.lang.String REQUIREMENTS_MET_ALL
REQUIREMENTS_MET,
Constant Field Valuespublic static final java.lang.String REQUIREMENTS_MET_TOO_OLD_COMPARED_TO_BASE
REQUIREMENTS_MET,
Constant Field Valuespublic static final java.lang.String REQUIREMENTS_MET_TOO_OLD_COMPARED_TO_OPTION
REQUIREMENTS_MET,
Constant Field Valuespublic static final java.lang.String SUPPORTED_FLAG
public static final java.lang.String SYMBOLIC_LOAD_STATE
SYMBOLIC_LOAD_STATE_DEFINED - The
load is defined. The product load object for this load does not exist.
SYMBOLIC_LOAD_STATE_CREATED - The
product load object for this load exists.
SYMBOLIC_LOAD_STATE_PACKAGED - The
product load object for this has been packaged.
SYMBOLIC_LOAD_STATE_DAMAGED - The
product load object for this has been damaged.
SYMBOLIC_LOAD_STATE_LOADED - The
product is being loaded or deleted.
SYMBOLIC_LOAD_STATE_INSTALLED - The
product load object was loaded.
public static final java.lang.String SYMBOLIC_LOAD_STATE_DEFINED
SYMBOLIC_LOAD_STATE,
Constant Field Valuespublic static final java.lang.String SYMBOLIC_LOAD_STATE_CREATED
SYMBOLIC_LOAD_STATE,
Constant Field Valuespublic static final java.lang.String SYMBOLIC_LOAD_STATE_PACKAGED
SYMBOLIC_LOAD_STATE,
Constant Field Valuespublic static final java.lang.String SYMBOLIC_LOAD_STATE_DAMAGED
SYMBOLIC_LOAD_STATE,
Constant Field Valuespublic static final java.lang.String SYMBOLIC_LOAD_STATE_LOADED
SYMBOLIC_LOAD_STATE,
Constant Field Valuespublic static final java.lang.String SYMBOLIC_LOAD_STATE_INSTALLED
SYMBOLIC_LOAD_STATE,
Constant Field Valuespublic 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:
RELEASE_LEVEL_CURRENT - Use the release level of
the currently installed operating system.
RELEASE_LEVEL_ONLY - Use the only release level
for which a product load is found.
RELEASE_LEVEL_PREVIOUS - Use the previous
release with modification level 0 of the operating system.
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:
RELEASE_LEVEL_CURRENT - Use the release level of
the currently installed operating system.
RELEASE_LEVEL_ONLY - Use the only release level
for which a product load is found.
RELEASE_LEVEL_PREVIOUS - Use the previous
release with modification level 0 of the operating system.
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.protected void establishConnection()
throws ResourceException
The method is called by the resource framework automatically when the connection needs to be established.
establishConnection in class ResourceResourceException - If an error occurs.protected void freezeProperties()
throws ResourceException
The method is called by the resource framework automatically when the properties need to be frozen.
freezeProperties in class ResourceResourceException - If an error occurs.public java.lang.Object getAttributeUnchangedValue(java.lang.Object attributeID)
throws ResourceException
getAttributeUnchangedValue in class ChangeableResourceattributeID - Identifies the attribute.ResourceException - If an error occurs.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
refreshAttributeValues in class ChangeableResourceResourceException - If an error occurs.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:
RELEASE_LEVEL_CURRENT - Use the release level of
the currently installed operating system.
RELEASE_LEVEL_ONLY - Use the only release level
for which a product load is found.
RELEASE_LEVEL_PREVIOUS - Use the previous
release with modification level 0 of the operating system.
VxRxMx.