|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.jsdt.support.deploymenthelper.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.
Field Summary | |
---|---|
protected static DeploymentHelper |
helper
|
Constructor Summary | |
---|---|
protected |
InstalledProduct(java.lang.String version,
java.lang.String location)
Constructor sets version and location of the particular installed product which invokes it. |
Method Summary | |
---|---|
int |
compareVersion(java.lang.String versionToInstall)
Compares provided version string with the version of installed middleware. |
DeploymentHelper |
getDeploymentHelper()
Gets the Deployment helper. |
java.lang.String |
getInstalledLocation()
Gets the installed product directory |
static InstalledProduct |
getInstalledProduct(com.ibm.jsdt.support.deploymenthelper.installedproduct.ProductDetector productDetector,
java.lang.String location)
Gets the installed product at the given location by calling the appropriate middleware policy class implementors. |
static InstalledProduct[] |
getInstalledProducts(com.ibm.jsdt.support.deploymenthelper.installedproduct.ProductDetector productDetector)
Gets all the installed products on the target computer by calling the appropriate middleware policy class implementors. |
java.lang.String |
getInstalledVersion()
Gets the installed product version |
protected static DeploymentHelper |
getOSDeploymentHelper()
Gets the OS deployment helper. |
protected static java.lang.String |
grepRPM(java.lang.String rpmToGrep,
DeploymentHelper helper)
The run command to grep for provided RPM |
protected void |
setDeploymentHelper(DeploymentHelper theHelper)
Sets the DeploymentHelper object with the installed product deployment helper. |
protected void |
setInstalledLocation(java.lang.String location)
Sets the installed location with the location being passed. |
protected void |
setInstalledVersion(java.lang.String version)
Sets the installed version with the version string being passed. |
java.lang.String |
trimVersionToNVersionPlaces(int versionPlaces,
java.lang.String fullVersion)
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 |
Field Detail |
---|
protected static DeploymentHelper helper
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 setDeploymentHelper(DeploymentHelper theHelper)
theHelper
- The instance of the DeploymentHelper object used.public static InstalledProduct getInstalledProduct(com.ibm.jsdt.support.deploymenthelper.installedproduct.ProductDetector productDetector, java.lang.String location)
productDetector
- The ProductDetector object for the specific InstalledProduct.location
- The location of the installed product.
public static InstalledProduct[] getInstalledProducts(com.ibm.jsdt.support.deploymenthelper.installedproduct.ProductDetector productDetector)
productDetector
- The ProductDetector object for the specific InstalledProduct.
public DeploymentHelper getDeploymentHelper()
protected static java.lang.String grepRPM(java.lang.String rpmToGrep, DeploymentHelper helper)
rpmToGrep
- The rpm package to grep for.helper
- The instance of DeploymentHelper used.
protected static DeploymentHelper getOSDeploymentHelper()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |