|
|||||||||||
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
com.ibm.jsdt.support.deploymenthelper.installedproduct.IDSInstalledProduct
public class IDSInstalledProduct
Handles pre-installation and post-installation activities for the Informix Dynamic Server (IDS).
Field Summary | |
---|---|
static java.lang.String |
GROUP_ID
|
static int |
SERVER_MODE_ONLINE
|
static java.lang.String |
SERVERNUMBER
|
static java.lang.String |
USER_ID
|
Fields inherited from class com.ibm.jsdt.support.deploymenthelper.installedproduct.InstalledProduct |
---|
helper |
Constructor Summary | |
---|---|
protected |
IDSInstalledProduct(java.lang.String version,
java.lang.String location)
Constructs a new IDSInstalledProduct containing the version and the location of the installed product. |
Method Summary | |
---|---|
protected static java.lang.String |
determineIDSServerName(java.lang.String idsInstallLocation,
DeploymentHelper theHelper)
Gets IDS server name installed in a specified location. |
protected static java.lang.String |
executeIDSCommand(java.lang.String commandToExecute,
java.lang.String idsInstallLocation,
java.lang.String idsServerName,
DeploymentHelper theHelper)
Exectute Informix Dynamic Server (IDS) command or utility. |
static IDSInstalledProduct |
getInstalledProduct(java.lang.String location)
Determines whether IDS is installed. |
static IDSInstalledProduct[] |
getInstalledProducts()
Determines all instances of IDS installed on the target computer. |
java.lang.String |
getPortNumber(java.lang.String serverName)
Get IDS port number associated with particular server instance Port numbers are stored in a services file on Windows. |
java.lang.String[] |
getServerNames()
Gets the name of server instances in a particular INFORMIXDIR. |
java.lang.String |
getServerNumber(java.lang.String serverName)
Get the server number associated with the provided server name. |
java.lang.String |
getServiceName(java.lang.String serverName)
Get IDS Service name on Windows. |
java.lang.String |
getUniqueServerNumber()
Get unique server number which is not in use by any IDS instance on a target system. |
boolean |
isServerNameUnique(java.lang.String serverName)
This method checks whether the given server name is unique across the system. |
int |
startServer()
Start the Informix Dynamic Server (IDS) demo server. |
int |
startServer(boolean initialize)
Start/Initialize the Informix Dynamic Server (IDS)demo server. |
int |
stopServer()
Stop the demo server Currently the method is created for Linux only. |
int |
verifyIDSInstallation(java.lang.String serverName)
Runs an install verification test provided by IDS using provided server instance. |
Methods inherited from class com.ibm.jsdt.support.deploymenthelper.installedproduct.InstalledProduct |
---|
compareVersion, getDeploymentHelper, getInstalledLocation, getInstalledProduct, getInstalledProducts, getInstalledVersion, getOSDeploymentHelper, grepRPM, setDeploymentHelper, setInstalledLocation, setInstalledVersion, trimVersionToNVersionPlaces |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String USER_ID
public static final int SERVER_MODE_ONLINE
public static final java.lang.String GROUP_ID
public static final java.lang.String SERVERNUMBER
Constructor Detail |
---|
protected IDSInstalledProduct(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 static IDSInstalledProduct getInstalledProduct(java.lang.String location)
location
- The location of the installed product.
public static IDSInstalledProduct[] getInstalledProducts()
public java.lang.String[] getServerNames()
public boolean isServerNameUnique(java.lang.String serverName)
serverName
-
public int stopServer()
protected static java.lang.String executeIDSCommand(java.lang.String commandToExecute, java.lang.String idsInstallLocation, java.lang.String idsServerName, DeploymentHelper theHelper)
commandToExecute
- IDS utility to run along with required options, such as "onstat -V"idsInstallLocation
- The IDS installation location.idsServerName
- The IDS server name.theHelper
- DeploymentHelper object to use.
protected static java.lang.String determineIDSServerName(java.lang.String idsInstallLocation, DeploymentHelper theHelper)
idsInstallLocation
- IDS installation locationtheHelper
- DeploymentHelper object to use.
public java.lang.String getUniqueServerNumber()
public java.lang.String getServiceName(java.lang.String serverName)
serverName
- Server name e.g. ol_server
public java.lang.String getPortNumber(java.lang.String serverName)
serverName
- Server name e.g. ol_server
public int verifyIDSInstallation(java.lang.String serverName)
serverName
- at particular install location
public java.lang.String getServerNumber(java.lang.String serverName)
serverName
- Server name
public int startServer()
public int startServer(boolean initialize)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |