com.ibm.jsdt.support.installedproduct
Class InstalledProduct

java.lang.Object
  extended by com.ibm.jsdt.support.installedproduct.InstalledProduct
Direct Known Subclasses:
ConsoleAgentInstalledProduct, ConsoleMgmtExtInstalledProduct, DB2InstalledProduct, ERConsoleInstalledProduct, IDSInstalledProduct, IHSInstalledProduct, WASExpressInstalledProduct, WebserverPluginForWASInstalledProduct

Deprecated. Due to new package com.ibm.jsdt.support.deploymenthelper.installedproduct

public abstract class InstalledProduct
extends java.lang.Object

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

InstalledProduct

protected InstalledProduct(java.lang.String version,
                           java.lang.String location)
Deprecated. 
Constructor sets version and location of the particular installed product which invokes it.

Parameters:
version - The version of the installed product.
location - The location of the installed product.
Method Detail

getInstalledLocation

public java.lang.String getInstalledLocation()
Deprecated. 
Gets the installed product directory

Returns:
The installation location.

getInstalledVersion

public java.lang.String getInstalledVersion()
Deprecated. 
Gets the installed product version

Returns:
The version of the installed product.

compareVersion

public int compareVersion(java.lang.String versionToInstall)
Deprecated. 
Compares provided version string with the version of installed middleware. If provided version or installed version contains any character besides number and dot, these characters will be removed before making comparison.

Parameters:
versionToInstall - String to be queried
Returns:
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.

trimVersionToNVersionPlaces

public 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. For example, if the installed version is 6.0.2.1 and the versionPlaces = 2, then 6.0 would be returned.

Returns:
The installed version number trimmed to the number of places specified.

setInstalledLocation

protected void setInstalledLocation(java.lang.String location)
Deprecated. 
Sets the installed location with the location being passed.

Parameters:
location - The installation location.

setInstalledVersion

protected void setInstalledVersion(java.lang.String version)
Deprecated. 
Sets the installed version with the version string being passed.

Parameters:
version - The version of the product.

setSupportBase

protected void setSupportBase(SupportBase theBase)
Deprecated. 
Sets the SupportBase object with the installed product support base.

Parameters:
theBase - The instance of the SupportBase object used.

getInstalledProduct

public 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. The support base is supplied by the caller. If the caller does not provide the support base, the appropriate one is created, and is passed to the product detector class.

Parameters:
productDetector - The ProductDetector object for the specific InstalledProduct.
callerBase - The instance of SupportBase used.
location - The location of the installed product.
Returns:
An instance of the installed product.

getInstalledProducts

public 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. The support base is supplied by the caller. If the caller does not provide the support base, an appropriate one is created, and is passed to the product detector class.

Parameters:
productDetector - The ProductDetector object for the specific InstalledProduct.
callerBase - The instance of SupportBase used.
Returns:
An instance of the installed product.

getSupportBase

public SupportBase getSupportBase()
Deprecated. 
Gets the support base.

Returns:
The instance of SupportBase used.

grepRPM

protected static java.lang.String grepRPM(java.lang.String rpmToGrep,
                                          SupportBase base)
Deprecated. 
The run command to grep for provided RPM

Parameters:
rpmToGrep - The rpm package to grep for.
base - The instance of SupportBase used.
Returns:
String output of the command

getActualSupportBase

protected SupportBase getActualSupportBase()
Deprecated. 
Gets the support base.

Returns:
The instance of SupportBase used.