com.ibm.jsdt.support.installedproduct
Class IHSInstalledProduct

java.lang.Object
  extended by com.ibm.jsdt.support.installedproduct.InstalledProduct
      extended by com.ibm.jsdt.support.installedproduct.IHSInstalledProduct

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

public class IHSInstalledProduct
extends InstalledProduct

Handles pre-installation and post-installation activities for IBM HTTP Server.


Constructor Summary
protected IHSInstalledProduct(java.lang.String version, java.lang.String location)
          Deprecated. Constructs a new IHSInstalledProduct containing the version and the location of the installed product.
 
Method Summary
 java.lang.String getHttpdConfFile()
          Deprecated. Returns the fully qualified path and name of the HTTP configuration file for the default server for this installation.
 java.lang.String getHttpdConfFile(java.lang.String profileName)
          Deprecated. Returns the fully qualified path and name of the HTTP configuration file for a specific server name.
static IHSInstalledProduct getInstalledProduct(java.lang.String location)
          Deprecated. Gets the IBM HTTP Server installed product at the given location.
static IHSInstalledProduct getInstalledProduct(SupportBase callerBase, java.lang.String location)
          Deprecated. Gets the IBM HTTP Server installed product at the given location.
static IHSInstalledProduct[] getInstalledProducts()
          Deprecated. Gets all IBM HTTP Server installed product versions, if any, on the target computer.
static IHSInstalledProduct[] getInstalledProducts(SupportBase callerBase)
          Deprecated. Gets all the installed products, if any, on the target computer.
 java.lang.String[] getSecondaryIHSLogFiles(SupportBase callerBase)
          Deprecated. Gets the list of fully qualified log files for debugging purposes.
 boolean isAdminServerRunning()
          Deprecated. Checks to see if the IBM HTTP Administrative Server is currently running.
 boolean isHTTPServerConfigured()
          Deprecated. Determines if the HTTP server is configured for this installation location by checking for the existence of the httpd.conf file.
 boolean isHTTPServerConfigured(java.lang.String profileName)
          Deprecated. Determines whether the HTTP server is configured for this installation location by checking for the existence of the httpd.conf file for that IBM HTTP Server profile.
 boolean isServerRunning()
          Deprecated. Checks to see if the IBM HTTP Server is currently running.
 boolean replaceServerNameFieldInHttpdConfFile(java.lang.String httpPort)
          Deprecated. Replaces the ServerName field in httpd.conf file with fully qualified host name and port.
 boolean restartAdminServer()
          Deprecated. Restarts the current installation of the IBM HTTP Administration Server.
 boolean restartServer()
          Deprecated. Restarts the current installation of the IBM HTTP Server.
 int startAdminServer()
          Deprecated. Starts current installation of the IBM HTTP Administration Server.
 int startServer()
          Deprecated. Starts current installation of the IBM HTTP Server.
 int stopAdminServer()
          Deprecated. Stops the current installation of the IBM HTTP Administration Server.
 int stopServer()
          Deprecated. Stops the current installation of the IBM HTTP Server.
 
Methods inherited from class com.ibm.jsdt.support.installedproduct.InstalledProduct
compareVersion, getActualSupportBase, getInstalledLocation, getInstalledProduct, getInstalledProducts, getInstalledVersion, getSupportBase, grepRPM, setInstalledLocation, setInstalledVersion, setSupportBase, trimVersionToNVersionPlaces
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IHSInstalledProduct

protected IHSInstalledProduct(java.lang.String version,
                              java.lang.String location)
Deprecated. 
Constructs a new IHSInstalledProduct containing the version and the location of the installed product.

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

getInstalledProduct

public static IHSInstalledProduct getInstalledProduct(java.lang.String location)
Deprecated. 
Gets the IBM HTTP Server installed product at the given location.

Parameters:
location - The location of the installed product.
Returns:
Returns an instance of the installed product.

getInstalledProduct

public static IHSInstalledProduct getInstalledProduct(SupportBase callerBase,
                                                      java.lang.String location)
Deprecated. 
Gets the IBM HTTP Server installed product at the given location. This method calls the InstalledProduct object and passes the location and the created object of policy class implementor with the SupportBase object.

Parameters:
callerBase - SupportBase object to use.
location - The location of the installed product.
Returns:
Returns an instance of the installed product.

getInstalledProducts

public static IHSInstalledProduct[] getInstalledProducts()
Deprecated. 
Gets all IBM HTTP Server installed product versions, if any, on the target computer.

Returns:
Returns instances of the installed products.

getInstalledProducts

public static IHSInstalledProduct[] getInstalledProducts(SupportBase callerBase)
Deprecated. 
Gets all the installed products, if any, on the target computer.

Parameters:
callerBase - SupportBase object to use.
Returns:
Returns an instance of the installed product.

getSecondaryIHSLogFiles

public java.lang.String[] getSecondaryIHSLogFiles(SupportBase callerBase)
Deprecated. 
Gets the list of fully qualified log files for debugging purposes.

Parameters:
callerBase - SupportBase object to use.
Returns:
An array of log files

replaceServerNameFieldInHttpdConfFile

public boolean replaceServerNameFieldInHttpdConfFile(java.lang.String httpPort)
Deprecated. 
Replaces the ServerName field in httpd.conf file with fully qualified host name and port.

Returns:
Return true if ServerName field is succesfully updated. Return false if ServerName field is not successfully updated.

getHttpdConfFile

public java.lang.String getHttpdConfFile()
Deprecated. 
Returns the fully qualified path and name of the HTTP configuration file for the default server for this installation.

Returns:
Absolute path to the configuration file.

getHttpdConfFile

public java.lang.String getHttpdConfFile(java.lang.String profileName)
Deprecated. 
Returns the fully qualified path and name of the HTTP configuration file for a specific server name. For non-iSeries platforms, this is the default server configuration file.

Returns:
Absolute path to the configuration file.

isHTTPServerConfigured

public boolean isHTTPServerConfigured()
Deprecated. 
Determines if the HTTP server is configured for this installation location by checking for the existence of the httpd.conf file. For iSeries platforms, the DEFAULT IBM HTTP Server is configured.

Returns:
Return true if it is configured. Return false if it is not configured.

isHTTPServerConfigured

public boolean isHTTPServerConfigured(java.lang.String profileName)
Deprecated. 
Determines whether the HTTP server is configured for this installation location by checking for the existence of the httpd.conf file for that IBM HTTP Server profile. For non-iSeries platforms, this profile is the default configuration.

Returns:
Return true if it is configured. Return false if it is not configured.

isServerRunning

public boolean isServerRunning()
Deprecated. 
Checks to see if the IBM HTTP Server is currently running.

Returns:
Return true if the server is running. Return false if the server is not runnning.

isAdminServerRunning

public boolean isAdminServerRunning()
Deprecated. 
Checks to see if the IBM HTTP Administrative Server is currently running.

Returns:
Return true if the server is running. Return false if the server is not runnning.

startServer

public int startServer()
Deprecated. 
Starts current installation of the IBM HTTP Server.

Returns:
SupportBase.SUCCESS if the server is running The return code of invoking the server start command if it's a failure.

startAdminServer

public int startAdminServer()
Deprecated. 
Starts current installation of the IBM HTTP Administration Server.

Returns:
SupportBase.SUCCESS if the server is running The return code of invoking the server start command if it's a failure.

stopAdminServer

public int stopAdminServer()
Deprecated. 
Stops the current installation of the IBM HTTP Administration Server.

Returns:
SupportBase.SUCCESS if the server is stopped The return code of invoking the server stop command if it's a failure.

stopServer

public int stopServer()
Deprecated. 
Stops the current installation of the IBM HTTP Server.

Returns:
SupportBase.SUCCESS if the server is stopped The return code of invoking the server stop command if it's a failure.

restartServer

public boolean restartServer()
Deprecated. 
Restarts the current installation of the IBM HTTP Server.

Returns:
True, if restart is successful. False, if restart fails.

restartAdminServer

public boolean restartAdminServer()
Deprecated. 
Restarts the current installation of the IBM HTTP Administration Server.

Returns:
True, if restart is successful. False, if restart fails.