|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.jsdt.support.installedproduct.InstalledProduct
public abstract class InstalledProduct
Enables products to have classes that will perform post-installation activities. It requires that the product be already installed on the computer.
Constructor Summary | |
---|---|
protected |
InstalledProduct(java.lang.String version,
java.lang.String location)
Deprecated. Constructor sets version and location of the particular installed product which invokes it. |
Method Summary | |
---|---|
int |
compareVersion(java.lang.String versionToInstall)
Deprecated. Compares provided version string with the version of installed middleware. |
protected SupportBase |
getActualSupportBase()
Deprecated. Gets the support base. |
java.lang.String |
getInstalledLocation()
Deprecated. Gets the installed product directory |
static InstalledProduct |
getInstalledProduct(com.ibm.jsdt.support.installedproduct.ProductDetector productDetector,
SupportBase callerBase,
java.lang.String location)
Deprecated. Gets the installed product at the given location by calling the appropriate middleware policy class implementors. |
static InstalledProduct[] |
getInstalledProducts(com.ibm.jsdt.support.installedproduct.ProductDetector productDetector,
SupportBase callerBase)
Deprecated. Gets all the installed products on the target computer by calling the appropriate middleware policy class implementors. |
java.lang.String |
getInstalledVersion()
Deprecated. Gets the installed product version |
SupportBase |
getSupportBase()
Deprecated. Gets the support base. |
protected static java.lang.String |
grepRPM(java.lang.String rpmToGrep,
SupportBase base)
Deprecated. The run command to grep for provided RPM |
protected void |
setInstalledLocation(java.lang.String location)
Deprecated. Sets the installed location with the location being passed. |
protected void |
setInstalledVersion(java.lang.String version)
Deprecated. Sets the installed version with the version string being passed. |
protected void |
setSupportBase(SupportBase theBase)
Deprecated. Sets the SupportBase object with the installed product support base. |
java.lang.String |
trimVersionToNVersionPlaces(int versionPlaces,
java.lang.String fullVersion)
Deprecated. Concatenates the installed version to the number of decimals specified using the '.' as a separator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected InstalledProduct(java.lang.String version, java.lang.String location)
version
- The version of the installed product.location
- The location of the installed product.Method Detail |
---|
public java.lang.String getInstalledLocation()
public java.lang.String getInstalledVersion()
public int compareVersion(java.lang.String versionToInstall)
versionToInstall
- String
to be queried
int
there are four possible return values: 0 indicates versions are equal; -1 indicates
versionToInstall is an upgrade to the version already installed (an earlier version is installed); 1 indicates
versionToInstall is a downgrade to the version already installed (a later version is installed).
Integer.MIN_VALUE
if versionToInstall or already installed version contains characters other
than dots and numbers.public java.lang.String trimVersionToNVersionPlaces(int versionPlaces, java.lang.String fullVersion)
protected void setInstalledLocation(java.lang.String location)
location
- The installation location.protected void setInstalledVersion(java.lang.String version)
version
- The version of the product.protected void setSupportBase(SupportBase theBase)
theBase
- The instance of the SupportBase object used.public static InstalledProduct getInstalledProduct(com.ibm.jsdt.support.installedproduct.ProductDetector productDetector, SupportBase callerBase, java.lang.String location)
productDetector
- The ProductDetector object for the specific InstalledProduct.callerBase
- The instance of SupportBase used.location
- The location of the installed product.
public static InstalledProduct[] getInstalledProducts(com.ibm.jsdt.support.installedproduct.ProductDetector productDetector, SupportBase callerBase)
productDetector
- The ProductDetector object for the specific InstalledProduct.callerBase
- The instance of SupportBase used.
public SupportBase getSupportBase()
protected static java.lang.String grepRPM(java.lang.String rpmToGrep, SupportBase base)
rpmToGrep
- The rpm package to grep for.base
- The instance of SupportBase used.
protected SupportBase getActualSupportBase()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |