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