|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.jsdt.support.installedproduct.InstalledProduct
com.ibm.jsdt.support.installedproduct.WASExpressInstalledProduct
public class WASExpressInstalledProduct
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 |
---|
protected WASExpressInstalledProduct(java.lang.String version, java.lang.String location)
version
- location
- Method Detail |
---|
public java.lang.String getAdminPort(java.lang.String profileName)
profileName
- The Websphere Apllication Server profile name.
public java.lang.String getDefaultPort(java.lang.String profileName)
profileName
- The Websphere Apllication Server profile name.
public java.lang.String getDefaultProfileName()
public java.lang.String getProfileHomeDirectory()
public static WASExpressInstalledProduct getInstalledProduct(java.lang.String location)
location
- The location to search for WebSphere Application Server - Express information.
public static WASExpressInstalledProduct getInstalledProduct(SupportBase callerBase, java.lang.String location)
callerBase
- Instance of SupportBase used.location
- location to search for WebSphere Application Server - Express information.
public static WASExpressInstalledProduct[] getInstalledProducts()
public static WASExpressInstalledProduct[] getInstalledProducts(SupportBase callerBase)
callerBase
- Instance of SupportBase used.
public java.lang.String getProfileBinDirectory(java.lang.String profile)
profile
- The profile name.
public java.lang.String getProfileDirectory(java.lang.String profile)
profile
- Name of the profile to return path of
public java.lang.String getVersionInfo()
public int runInstallVerificationTestUsingDefualtProfileAndServer()
public int runInstallVerificationTestUsingCustomProfileAndServer(java.lang.String profileName, java.lang.String profileLocation)
public int runInstallVerificationTest(java.lang.String serverName, java.lang.String profileName, java.lang.String profileLocation)
public int restartWAS(java.lang.String serverName, java.lang.String profileName, java.lang.String adminId, java.lang.String adminPw)
serverName
- Name of the server to be restartedprofileName
- Name of the profile where the server residesadminId
- WebSphere application server administrator IdadminPw
- WebSphere application server administrator password
public int restartWAS(java.lang.String serverName, java.lang.String adminId, java.lang.String adminPw)
serverName
- Name of the server to be restartedadminId
- WebSphere application server administrator IdadminPw
- WebSphere application server administrator password
public int stopServer(java.lang.String serverName, java.lang.String adminID, java.lang.String adminPassword)
severName
- Name of the server to be stopadminID
- WebSphere application server administrator IdadminPassword
- WebSphere application server administrator password
public int stopServer(java.lang.String serverName, java.lang.String profileName, java.lang.String adminID, java.lang.String adminPassword)
severName
- Name of the server to be stopprofileName
- Name of the profile where the server residesadminID
- WebSphere application server administrator IdadminPassword
- WebSphere application server administrator password
public int startServer(java.lang.String serverName)
severName
- Name of the server to start
public int startServer(java.lang.String serverName, java.lang.String profileName)
severName
- Name of the server to startprofileName
- Name of the profile where the server resides
public boolean isTrialVersion()
public java.lang.String getDefaultPluginConfigFileName(java.lang.String localHostName, java.lang.String webServerName)
localHostName
- The host name of where the Web server resides.webServerName
- The Web server name.
public boolean isWASInstallable(java.lang.String versionToInstall)
versionToInstall
- The WebSphere Application Server - Express version.
public int runJythonScript(java.lang.String pathToScript, java.lang.String[] argsToWSAdmin, java.lang.String[] argsToScript, java.lang.String commandToLog)
pathToScript
- Full path to the jython script to be runargstoWSAdmin
- 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 scriptcommandToLog
- The command to log.
public int runJythonScript(java.lang.String pathToScript, java.lang.String[] argsToWSAdmin, java.lang.String[] argsToScript, java.lang.String commandToLog, java.lang.String profileName)
pathToScript
- Full path to the jython script to be runargstoWSAdmin
- 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 scriptcommandToLog
- The command to log.profileName
- Name of the profile to call wsadmin command from.
public int checkLogs(long startLogSize)
startLogSize
- The size of the log before entering method.
public int createInstance(java.lang.String instanceName, java.lang.String startingPort)
instanceName
- - Name of instance to be created.startingPort
- - Starting port for the instance.
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)
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.
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)
instanceName
- - Name of instance to be created.startingPort
- - Starting port for the instance.wsHostName
- - Name of the Web Server hostwsInstallPath
- - Web Server installation pathwsName
- - Web Server Name e.g. webserver1wsOS
- - Web Server Operating SystemwsPluginPath
- - Web Server Plugin installation pathwsPort
- - Port used by Web ServerwsType
- - Type of Web Server e.g. IHS
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)
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 hostwsInstallPath
- - Web Server installation pathwsName
- - Web Server Name e.g. webserver1wsOS
- - Web Server Operating SystemwsPluginPath
- - Web Server Plugin installation pathwsPort
- - Port used by Web ServerwsType
- - Type of Web Server e.g. IHS
public int runManageProfileScript(java.lang.String options, java.lang.String optionsToLog)
options
- - Options to run with manageProfiles.optionsToLog
- - Options to log.
public boolean isWASServerRunning(java.lang.String serverName)
WAS
- server name to check for status
public boolean isWASServerRunning(java.lang.String serverName, java.lang.String adminID, java.lang.String adminPassword)
WAS
- server name to check for statusadminID
- - Administrator user IDadminPassword
- - Administrator password
public boolean isWASServerRunning(java.lang.String serverName, java.lang.String profileName, java.lang.String adminID, java.lang.String adminPassword)
serverName
- - To check for statusprofileName
- - Name of the profile where the server resides.adminID
- - Administrator user IDadminPassword
- - Administrator password
public boolean profileExists(java.lang.String profileName)
WebSphere
- Application Server profile name
public java.lang.String[] getProfiles()
public int backupWASProfilesConfiguration()
public int backupWASProfilesConfiguration(java.lang.String adminUserID, java.lang.String adminPassword)
public java.lang.String getDefaultProfileName(java.lang.String wasHome)
WAS
- installation location
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |