com.ibm.jsdt.support.installedproduct
Class WASExpressInstalledProduct

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

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

public class WASExpressInstalledProduct
extends InstalledProduct

Handles pre-installation and post-installation activities of WebSphere Application Server - Express.


Constructor Summary
protected WASExpressInstalledProduct(java.lang.String version, java.lang.String location)
          Deprecated. Constructs a new WASExpressInstalledProduct containing the version and the location of the installed product.
 
Method Summary
 int backupWASProfilesConfiguration()
          Deprecated. Back up all profiles configuration for a particular WebSphere Application Server (WAS) server.
 int backupWASProfilesConfiguration(java.lang.String adminUserID, java.lang.String adminPassword)
          Deprecated. Back up all profiles configuration for a particular WebSphere Application Server (WAS) server.
 int checkLogs(long startLogSize)
          Deprecated. Looks for the string INSTCONFSUCCESS: in WebSphere Application Server - Express installation log file for success indicator.
 int createInstance(java.lang.String instanceName, java.lang.String startingPort)
          Deprecated. Creates server instance and profile using WebSphere Application Server - Express managerProfiles script.
 int createInstanceWithAdminSec(java.lang.String instanceName, java.lang.String startingPort, java.lang.String adminUser, java.lang.String adminPassword, boolean sampleInstalled, java.lang.String samplePassword)
          Deprecated. Creates server instance and profile with an administrative security.
 int createInstanceWithAdminSecAndWSDef(java.lang.String instanceName, java.lang.String startingPort, java.lang.String adminUser, java.lang.String adminPassword, boolean sampleInstalled, java.lang.String samplePassword, java.lang.String wsHostName, java.lang.String wsInstallPath, java.lang.String wsName, java.lang.String wsOS, java.lang.String wsPluginPath, java.lang.String wsPort, java.lang.String wsType)
          Deprecated. Creates server instance and profile with an administrative security and web server definition.If samples installed, in order to access it, it is required that instance is created by providing samples password.
 int createInstanceWithWSDef(java.lang.String instanceName, java.lang.String startingPort, java.lang.String wsHostName, java.lang.String wsInstallPath, java.lang.String wsName, java.lang.String wsOS, java.lang.String wsPluginPath, java.lang.String wsPort, java.lang.String wsType)
          Deprecated. Creates server instance and profile with web server definition.
 java.lang.String getAdminPort(java.lang.String profileName)
          Deprecated. Returns the administrator port number for the profile name specified, if none is specified then the default profile name is used.
 java.lang.String getDefaultPluginConfigFileName(java.lang.String localHostName, java.lang.String webServerName)
          Deprecated. Returns the name of the Web server plugin configuration file for the default WebSphere Application Server - Express profile.
 java.lang.String getDefaultPort(java.lang.String profileName)
          Deprecated. Returns the http port number for the profile name specified, if none is specified then the default profile name is used.
 java.lang.String getDefaultProfileName()
          Deprecated. Return the name of the default profile for the version of WebSphere Application Server - Express.
 java.lang.String getDefaultProfileName(java.lang.String wasHome)
          Deprecated. Returns the name of the default profile for the given WebSphere Application Server installation.
static WASExpressInstalledProduct getInstalledProduct(java.lang.String location)
          Deprecated. Gets the WebSphere Application Server - Express installed product from the given location.
static WASExpressInstalledProduct getInstalledProduct(SupportBase callerBase, java.lang.String location)
          Deprecated. Gets the WebSphere Application Server - Express installed product from the given location.
static WASExpressInstalledProduct[] getInstalledProducts()
          Deprecated. Gets all WebSphere Application Server - Express installed products, if any, on the target machine, this method can be used when the user does not pass SupportBase.
static WASExpressInstalledProduct[] getInstalledProducts(SupportBase callerBase)
          Deprecated. Gets all WebSphere Application Server - Express installed products if there are any on the target computer.
 java.lang.String getProfileBinDirectory(java.lang.String profile)
          Deprecated. Gets the bin directory for a given profile.
 java.lang.String getProfileDirectory(java.lang.String profile)
          Deprecated. Returns the absolute directory name to the profile directory.
 java.lang.String getProfileHomeDirectory()
          Deprecated. Return the location of the profile directory for WebSphere Application Server - Express.
 java.lang.String[] getProfiles()
          Deprecated. Get existing WebSphere Application Server installed in a particular location.
 java.lang.String getVersionInfo()
          Deprecated. Gets the version information by running the WebSphere Application Server - Express version information script versionInfo.bat.
 boolean isTrialVersion()
          Deprecated. Checks whether installed WebSphere Application Server - Express version is a trial edition.
 boolean isWASInstallable(java.lang.String versionToInstall)
          Deprecated. Check if provided version of WebSphere Application Server - Express can be installed at the installation location.
 boolean isWASServerRunning(java.lang.String serverName)
          Deprecated. Check whether provided WebSphere Application Server (WAS) server is in running state.
 boolean isWASServerRunning(java.lang.String serverName, java.lang.String adminID, java.lang.String adminPassword)
          Deprecated. Check whether provided WebSphere Application Server (WAS) server is in running state.
 boolean isWASServerRunning(java.lang.String serverName, java.lang.String profileName, java.lang.String adminID, java.lang.String adminPassword)
          Deprecated. Check whether provided WebSphere Application Server (WAS) server is in running state.
 boolean profileExists(java.lang.String profileName)
          Deprecated. Check if provided profile is already exists for WebSphere Application Server installed in a particular location.
 int restartWAS(java.lang.String serverName, java.lang.String adminId, java.lang.String adminPw)
          Deprecated. Restarts WebSphere application server.
 int restartWAS(java.lang.String serverName, java.lang.String profileName, java.lang.String adminId, java.lang.String adminPw)
          Deprecated. Restarts WebSphere application server.
 int runInstallVerificationTest(java.lang.String serverName, java.lang.String profileName, java.lang.String profileLocation)
          Deprecated. Runs an Install Verification Test (IVT) that WebSphere Application Server - Express provides.
 int runInstallVerificationTestUsingCustomProfileAndServer(java.lang.String profileName, java.lang.String profileLocation)
          Deprecated. Runs an installation verification test provided by WebSphere Application Server - Express using provided profile name and location.
 int runInstallVerificationTestUsingDefualtProfileAndServer()
          Deprecated. Runs an installation verification test provided by WebSphere Application Server - Express using default profile and server name This method is currently tested on WebSphere Application Server - Express V6.1.0.0 only.
 int runJythonScript(java.lang.String pathToScript, java.lang.String[] argsToWSAdmin, java.lang.String[] argsToScript, java.lang.String commandToLog)
          Deprecated. Runs Jython script on wsadmin to perform WebSphere Application Server - Express administrative task.
 int runJythonScript(java.lang.String pathToScript, java.lang.String[] argsToWSAdmin, java.lang.String[] argsToScript, java.lang.String commandToLog, java.lang.String profileName)
          Deprecated. Runs Jython script on wsadmin to perform WebSphere Application Server - Express administrative task.
 int runManageProfileScript(java.lang.String options, java.lang.String optionsToLog)
          Deprecated. Run manageProfile script with given options.
 int startServer(java.lang.String serverName)
          Deprecated. Start WebSphere Application Server - Express
 int startServer(java.lang.String serverName, java.lang.String profileName)
          Deprecated. Start WebSphere Application Server - Express
 int stopServer(java.lang.String serverName, java.lang.String adminID, java.lang.String adminPassword)
          Deprecated. Stops WebSphere application server
 int stopServer(java.lang.String serverName, java.lang.String profileName, java.lang.String adminID, java.lang.String adminPassword)
          Deprecated. Stops WebSphere application 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

WASExpressInstalledProduct

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

Parameters:
version -
location -
Method Detail

getAdminPort

public java.lang.String getAdminPort(java.lang.String profileName)
Deprecated. 
Returns the administrator port number for the profile name specified, if none is specified then the default profile name is used.

Parameters:
profileName - The Websphere Apllication Server profile name.
Returns:
The administrator port number

getDefaultPort

public java.lang.String getDefaultPort(java.lang.String profileName)
Deprecated. 
Returns the http port number for the profile name specified, if none is specified then the default profile name is used.

Parameters:
profileName - The Websphere Apllication Server profile name.
Returns:
The default (http) port number

getDefaultProfileName

public java.lang.String getDefaultProfileName()
Deprecated. 
Return the name of the default profile for the version of WebSphere Application Server - Express. Supports version 6.0 and 6.1.

Returns:
The name of the default profile.

getProfileHomeDirectory

public java.lang.String getProfileHomeDirectory()
Deprecated. 
Return the location of the profile directory for WebSphere Application Server - Express. Returned value includes the profiles folder - Supports version 6.0 and 6.1.

Returns:
The path to the profile directory.

getInstalledProduct

public static WASExpressInstalledProduct getInstalledProduct(java.lang.String location)
Deprecated. 
Gets the WebSphere Application Server - Express installed product from the given location.

Parameters:
location - The location to search for WebSphere Application Server - Express information.
Returns:
A new WASExpressInstalledProduct instance containing location and version information if WebSphere Application Server - Express is found at a given location, null otherwise.

getInstalledProduct

public static WASExpressInstalledProduct getInstalledProduct(SupportBase callerBase,
                                                             java.lang.String location)
Deprecated. 
Gets the WebSphere Application Server - Express installed product from the given location.

Parameters:
callerBase - Instance of SupportBase used.
location - location to search for WebSphere Application Server - Express information.
Returns:
A new WASExpressInstalledProduct instance containing location and version information, null otherwise.

getInstalledProducts

public static WASExpressInstalledProduct[] getInstalledProducts()
Deprecated. 
Gets all WebSphere Application Server - Express installed products, if any, on the target machine, this method can be used when the user does not pass SupportBase.

Returns:
All instances of WebSphere Appication Server - Express found.

getInstalledProducts

public static WASExpressInstalledProduct[] getInstalledProducts(SupportBase callerBase)
Deprecated. 
Gets all WebSphere Application Server - Express installed products if there are any on the target computer. This method calls InstalledProduct object and passes the created object of the policy class implementor with the SupportBase object.

Parameters:
callerBase - Instance of SupportBase used.
Returns:
All instances of WebSphere Appication Server - Express found.

getProfileBinDirectory

public java.lang.String getProfileBinDirectory(java.lang.String profile)
Deprecated. 
Gets the bin directory for a given profile.

Parameters:
profile - The profile name.
Returns:
The bin directory for a given profile.

getProfileDirectory

public java.lang.String getProfileDirectory(java.lang.String profile)
Deprecated. 
Returns the absolute directory name to the profile directory.

Parameters:
profile - Name of the profile to return path of
Returns:
The profile directory for a given profile.

getVersionInfo

public java.lang.String getVersionInfo()
Deprecated. 
Gets the version information by running the WebSphere Application Server - Express version information script versionInfo.bat.

Returns:
The version information if script is completed successfully, null otherwise.

runInstallVerificationTestUsingDefualtProfileAndServer

public int runInstallVerificationTestUsingDefualtProfileAndServer()
Deprecated. 
Runs an installation verification test provided by WebSphere Application Server - Express using default profile and server name This method is currently tested on WebSphere Application Server - Express V6.1.0.0 only.

Returns:
SUCCESS if installation verification test completed successfully, FAILURE otherwise.

runInstallVerificationTestUsingCustomProfileAndServer

public int runInstallVerificationTestUsingCustomProfileAndServer(java.lang.String profileName,
                                                                 java.lang.String profileLocation)
Deprecated. 
Runs an installation verification test provided by WebSphere Application Server - Express using provided profile name and location. This method is currently tested on WebSphere Application Server - Express V6.1.0.0 only.

Returns:
SUCCESS if installation verification test completed successfully, FAILURE otherwise.

runInstallVerificationTest

public int runInstallVerificationTest(java.lang.String serverName,
                                      java.lang.String profileName,
                                      java.lang.String profileLocation)
Deprecated. 
Runs an Install Verification Test (IVT) that WebSphere Application Server - Express provides.

Returns:
SUCCESS if installation verification test completed successfully, FAILURE otherwise.

restartWAS

public int restartWAS(java.lang.String serverName,
                      java.lang.String profileName,
                      java.lang.String adminId,
                      java.lang.String adminPw)
Deprecated. 
Restarts WebSphere application server. First, the server status is known, if the server is currently running it will be attempted to stop and then start. If the server is not running it will be started.

Parameters:
serverName - Name of the server to be restarted
profileName - Name of the profile where the server resides
adminId - WebSphere application server administrator Id
adminPw - WebSphere application server administrator password
Returns:
SUCCESS if the restart is a successful, else FAILURE

restartWAS

public int restartWAS(java.lang.String serverName,
                      java.lang.String adminId,
                      java.lang.String adminPw)
Deprecated. 
Restarts WebSphere application server. First, the server status is known, if the server is currently running it will be attempted to stop and then start. If the server is not running it will be started.

Parameters:
serverName - Name of the server to be restarted
adminId - WebSphere application server administrator Id
adminPw - WebSphere application server administrator password
Returns:
SUCCESS if the restart is a successful, else FAILURE

stopServer

public int stopServer(java.lang.String serverName,
                      java.lang.String adminID,
                      java.lang.String adminPassword)
Deprecated. 
Stops WebSphere application server

Parameters:
severName - Name of the server to be stop
adminID - WebSphere application server administrator Id
adminPassword - WebSphere application server administrator password
Returns:
int SUCCESS if the server stop is a success, else FAILURE

stopServer

public int stopServer(java.lang.String serverName,
                      java.lang.String profileName,
                      java.lang.String adminID,
                      java.lang.String adminPassword)
Deprecated. 
Stops WebSphere application server

Parameters:
severName - Name of the server to be stop
profileName - Name of the profile where the server resides
adminID - WebSphere application server administrator Id
adminPassword - WebSphere application server administrator password
Returns:
int SUCCESS if the server stop is a success, else FAILURE

startServer

public int startServer(java.lang.String serverName)
Deprecated. 
Start WebSphere Application Server - Express

Parameters:
severName - Name of the server to start
Returns:
SUCCESS if the server starts successfully , else return FAILURE.

startServer

public int startServer(java.lang.String serverName,
                       java.lang.String profileName)
Deprecated. 
Start WebSphere Application Server - Express

Parameters:
severName - Name of the server to start
profileName - Name of the profile where the server resides
Returns:
SUCCESS if the server starts successfully , else return FAILURE.

isTrialVersion

public boolean isTrialVersion()
Deprecated. 
Checks whether installed WebSphere Application Server - Express version is a trial edition. Checks for the presence of the componentmap.coreruntime.license.xml license file. This method is currently tested only for WebSphere Application Server - Express Version 6.1.

Returns:
Returns true, if trial edition is found, else returns false.

getDefaultPluginConfigFileName

public java.lang.String getDefaultPluginConfigFileName(java.lang.String localHostName,
                                                       java.lang.String webServerName)
Deprecated. 
Returns the name of the Web server plugin configuration file for the default WebSphere Application Server - Express profile. It does not check if the file exists. If the path cannot be determined, returns null.

Parameters:
localHostName - The host name of where the Web server resides.
webServerName - The Web server name.
Returns:
The name of the Web server plugin configuration file.

isWASInstallable

public boolean isWASInstallable(java.lang.String versionToInstall)
Deprecated. 
Check if provided version of WebSphere Application Server - Express can be installed at the installation location. This method is currently only tested for WebSphere Application Server - Express 6.1.

Parameters:
versionToInstall - The WebSphere Application Server - Express version.
Returns:
Return true if given version is installable at the installation location, else return false.

runJythonScript

public int runJythonScript(java.lang.String pathToScript,
                           java.lang.String[] argsToWSAdmin,
                           java.lang.String[] argsToScript,
                           java.lang.String commandToLog)
Deprecated. 
Runs Jython script on wsadmin to perform WebSphere Application Server - Express administrative task. For example, to run a script to create Web server credentials, user might want to log this command: "C:\Program Files\IBM\WebSphere\AppServer\bin\profiles\AppSrv01\bin\wsadmin.bat -f C:\modifyWebServer.py webServerAdminUserID ********" This method is currently tested only for WebSphere Application Server - Express 6.1.

Parameters:
pathToScript - Full path to the jython script to be run
argstoWSAdmin - String array of arguments for wsadmin. Arguments are required to be in the form of key value pair, such as "-conntype NONE"
argsToScript - String array of arguments for the Jython script
commandToLog - The command to log.
Returns:
Return SUCCESS if script ran successfully, else returns false.

runJythonScript

public int runJythonScript(java.lang.String pathToScript,
                           java.lang.String[] argsToWSAdmin,
                           java.lang.String[] argsToScript,
                           java.lang.String commandToLog,
                           java.lang.String profileName)
Deprecated. 
Runs Jython script on wsadmin to perform WebSphere Application Server - Express administrative task. For example, to run a script to create Web server credentials, user might want to log this command: "C:\Program Files\IBM\WebSphere\AppServer\bin\profiles\AppSrv01\bin\wsadmin.bat -f C:\modifyWebServer.py webServerAdminUserID ********" This method is currently tested only for WebSphere Application Server - Express 6.1.

Parameters:
pathToScript - Full path to the jython script to be run
argstoWSAdmin - String array of arguments for wsadmin. Arguments are required to be in the form of key value pair, such as "-conntype NONE"
argsToScript - String array of arguments for the Jython script
commandToLog - The command to log.
profileName - Name of the profile to call wsadmin command from.
Returns:
Return SUCCESS if script ran successfully, else returns false.

checkLogs

public int checkLogs(long startLogSize)
Deprecated. 
Looks for the string INSTCONFSUCCESS: in WebSphere Application Server - Express installation log file for success indicator. Looks for the string INSTCONFPARTIALSUCCESS in the WebSphere Application Server - Express installation log for a warning. Also, appends the installation log to the main log. Assumes that the WebSphere Application Server - Express installation log file is /install/logs/log.txt.

Parameters:
startLogSize - The size of the log before entering method.
Returns:
Return SUCCESS if the instillation is successful. Return FAILURE if the instillation is not successful.

createInstance

public int createInstance(java.lang.String instanceName,
                          java.lang.String startingPort)
Deprecated. 
Creates server instance and profile using WebSphere Application Server - Express managerProfiles script. Method is currently only tested on I5OS.

Parameters:
instanceName - - Name of instance to be created.
startingPort - - Starting port for the instance.
Returns:
SUCCESS if instance created successfully. FAILURE if instance is not created successfully.

createInstanceWithAdminSec

public int createInstanceWithAdminSec(java.lang.String instanceName,
                                      java.lang.String startingPort,
                                      java.lang.String adminUser,
                                      java.lang.String adminPassword,
                                      boolean sampleInstalled,
                                      java.lang.String samplePassword)
Deprecated. 
Creates server instance and profile with an administrative security. If samples installed, in order to access it, it is required that instance is created by providing samples password. Instance creation is done using WebSphere Application Server - Express managerProfiles script. Method is currently only tested on I5OS.

Parameters:
instanceName - - Name of instance to be created.
startingPort - - Starting port for the instance.
adminUser - - Name of the administrative user.
adminPassword - - Password for the administrative security.
boolean - to verify wether samples feature installed.
samplePassword - - Samples feature password if samples are installed.
Returns:
SUCCESS if instance created successfully. FAILURE if instance is not created successfully.

createInstanceWithWSDef

public int createInstanceWithWSDef(java.lang.String instanceName,
                                   java.lang.String startingPort,
                                   java.lang.String wsHostName,
                                   java.lang.String wsInstallPath,
                                   java.lang.String wsName,
                                   java.lang.String wsOS,
                                   java.lang.String wsPluginPath,
                                   java.lang.String wsPort,
                                   java.lang.String wsType)
Deprecated. 
Creates server instance and profile with web server definition. Instance creation is done using WebSphere Application Server - Express managerProfiles command. Method is currently only tested on I5OS.

Parameters:
instanceName - - Name of instance to be created.
startingPort - - Starting port for the instance.
wsHostName - - Name of the Web Server host
wsInstallPath - - Web Server installation path
wsName - - Web Server Name e.g. webserver1
wsOS - - Web Server Operating System
wsPluginPath - - Web Server Plugin installation path
wsPort - - Port used by Web Server
wsType - - Type of Web Server e.g. IHS
Returns:
SUCCESS if instance created successfully. FAILURE if instance is not created successfully.

createInstanceWithAdminSecAndWSDef

public int createInstanceWithAdminSecAndWSDef(java.lang.String instanceName,
                                              java.lang.String startingPort,
                                              java.lang.String adminUser,
                                              java.lang.String adminPassword,
                                              boolean sampleInstalled,
                                              java.lang.String samplePassword,
                                              java.lang.String wsHostName,
                                              java.lang.String wsInstallPath,
                                              java.lang.String wsName,
                                              java.lang.String wsOS,
                                              java.lang.String wsPluginPath,
                                              java.lang.String wsPort,
                                              java.lang.String wsType)
Deprecated. 
Creates server instance and profile with an administrative security and web server definition.If samples installed, in order to access it, it is required that instance is created by providing samples password. Instance creation is done using WebSphere Application Server - Express managerProfiles command. Method is currently only tested on I5OS.

Parameters:
instanceName - - Name of instance to be created.
startingPort - - Starting port for the instance.
adminUser - - Name of the administrative user.
adminPassword - - Password for the administrative security.
boolean - to verify wether samples feature installed.
samplePassword - - Samples feature password if samples are installed.
wsHostName - - Name of the Web Server host
wsInstallPath - - Web Server installation path
wsName - - Web Server Name e.g. webserver1
wsOS - - Web Server Operating System
wsPluginPath - - Web Server Plugin installation path
wsPort - - Port used by Web Server
wsType - - Type of Web Server e.g. IHS
Returns:
SUCCESS if instance created successfully. FAILURE if instance is not created successfully.

runManageProfileScript

public int runManageProfileScript(java.lang.String options,
                                  java.lang.String optionsToLog)
Deprecated. 
Run manageProfile script with given options.

Parameters:
options - - Options to run with manageProfiles.
optionsToLog - - Options to log.
Returns:
SUCCESS if command output contains INSTCONFSUCCESS FAILURE otherwise

isWASServerRunning

public boolean isWASServerRunning(java.lang.String serverName)
Deprecated. 
Check whether provided WebSphere Application Server (WAS) server is in running state. This method is currently only tested for WebSphere Application Server - Express 6.1.

Parameters:
WAS - server name to check for status
Returns:
True if given server is currently running, False otherwise.

isWASServerRunning

public boolean isWASServerRunning(java.lang.String serverName,
                                  java.lang.String adminID,
                                  java.lang.String adminPassword)
Deprecated. 
Check whether provided WebSphere Application Server (WAS) server is in running state. This method is currently only tested for WebSphere Application Server - Express 6.1.

Parameters:
WAS - server name to check for status
adminID - - Administrator user ID
adminPassword - - Administrator password
Returns:
True if given server is currently running, False otherwise.

isWASServerRunning

public boolean isWASServerRunning(java.lang.String serverName,
                                  java.lang.String profileName,
                                  java.lang.String adminID,
                                  java.lang.String adminPassword)
Deprecated. 
Check whether provided WebSphere Application Server (WAS) server is in running state. This method is currently only tested for WebSphere Application Server - Express 6.1.

Parameters:
serverName - - To check for status
profileName - - Name of the profile where the server resides.
adminID - - Administrator user ID
adminPassword - - Administrator password
Returns:
True if given server is currently running, False otherwise.

profileExists

public boolean profileExists(java.lang.String profileName)
Deprecated. 
Check if provided profile is already exists for WebSphere Application Server installed in a particular location. This method is currently only tested for WebSphere Application Server - Express 6.1 on I5OS.

Parameters:
WebSphere - Application Server profile name
Returns:
true if given profile exists in a particular installation location, else return false.

getProfiles

public java.lang.String[] getProfiles()
Deprecated. 
Get existing WebSphere Application Server installed in a particular location. Method assumes that default profile is installed.

Returns:
String array of existing profiles in a particular installation location, null if any error occurs

backupWASProfilesConfiguration

public int backupWASProfilesConfiguration()
Deprecated. 
Back up all profiles configuration for a particular WebSphere Application Server (WAS) server. This uses the WAS backupConfig command. The back up file created will be in the /profiles directory and have the format of WebSphereConfig____.zip. The log file /profiles/___profileBackup.log is also created containing the results of the WAS back up commands.

Returns:
SUCCESS - if backupConfig command returns successfullly FAILURE otherwise.

backupWASProfilesConfiguration

public int backupWASProfilesConfiguration(java.lang.String adminUserID,
                                          java.lang.String adminPassword)
Deprecated. 
Back up all profiles configuration for a particular WebSphere Application Server (WAS) server. This uses the WAS backupConfig command. The back up file created will be in the /profiles directory and have the format of WebSphereConfig____.zip. The log file /profiles/___profileBackup.log is also created containing the results of the WAS back up commands.

Returns:
SUCCESS - if backupConfig command returns successfully FAILURE otherwise.

getDefaultProfileName

public java.lang.String getDefaultProfileName(java.lang.String wasHome)
Deprecated. 
Returns the name of the default profile for the given WebSphere Application Server installation. If the default profile cannot be determined, null is returned. The method is tested on I5OS only.

Parameters:
WAS - installation location
Returns:
default profile name