|
|||||||||||
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.DB2InstalledProduct
public class DB2InstalledProduct
Handles pre-installation and post-installation activities for DB2 UDB Express.
Constructor Summary | |
---|---|
protected |
DB2InstalledProduct(java.lang.String version,
java.lang.String location)
Deprecated. Constructs a new DB2InstalledProduct containing the version and the location of the installed product. |
Method Summary | |
---|---|
java.lang.String[] |
getAllInstancesforDB2Copy(java.lang.String db2Location)
Deprecated. This methods returns Windows: All the instance names created under this DB2 Copy Linux: All the instance user names created under this DB2 copy It is possible (but rare) that under each copy more than one instance name (Windows) or instance user (Linux) is created. |
java.lang.String |
getDB2CopyName()
Deprecated. Gets the copy name for this particular db2 installation. |
java.lang.String |
getDB2DASUser()
Deprecated. Gets the DAS user name. |
java.lang.String[] |
getDB2InstanceNames()
Deprecated. Gets the instance names for this particular DB2 copy in Windows. |
static DB2InstalledProduct |
getInstalledProduct(java.lang.String location)
Deprecated. Given a target location, handles the logic of finding an installed version of DB2. |
static DB2InstalledProduct |
getInstalledProduct(SupportBase callerBase,
java.lang.String location)
Deprecated. Determines whether DB2 is installed. |
static DB2InstalledProduct[] |
getInstalledProducts()
Deprecated. Determines all instances of DB2 installed on the target computer. |
static DB2InstalledProduct[] |
getInstalledProducts(SupportBase callerBase)
Deprecated. Determines all instances of DB2 installed on the target computer. |
java.lang.String |
getLinuxInstanceUser()
Deprecated. Gets the instance user name that exists for this DB2 install. |
int |
ipClean(java.lang.String location)
Deprecated. This method will clean all the DB2 interprocess communications in order for the instance to be udpated. |
boolean |
isDatabaseInUse(java.lang.String databaseName,
java.lang.String db2InstanceUser)
Deprecated. Checks whether a DB2 database is being accessed. |
java.lang.String |
runDB2Command(java.lang.String command)
Deprecated. Run a given db2 command. |
java.lang.String |
runDB2Command(java.lang.String command,
java.lang.String db2InstanceUser)
Deprecated. Run a given db2 command. |
int |
setDB2CopyDefault(java.lang.String db2CopyName)
Deprecated. Set specified db2 copy as a default db2 copy |
protected void |
setDB2CopyName(java.lang.String copyName)
Deprecated. Sets the copy name for this particular db2 installation. |
protected void |
setDB2DASUser(java.lang.String dasUser)
Deprecated. Sets the DAS user name the DB2 copies will use. |
protected void |
setDB2InstanceNames(java.lang.String[] instanceNames)
Deprecated. Sets the instance names for this particular DB2 copy in Windows. |
protected void |
setDB2LinuxInstanceUser(java.lang.String instanceUser)
Deprecated. Sets the instance user name that exists for this DB2 install. |
int |
startDAS()
Deprecated. This method starts the DB2 Administration Server. |
int |
startDB2(java.lang.String location)
Deprecated. This method starts all DB2 processes and instances. |
int |
stopDAS()
Deprecated. This method stops the DB2 Administration Server. |
int |
stopDB2(java.lang.String location)
Deprecated. This method stops all DB2 processes. |
int |
updateDAS(java.lang.String location)
Deprecated. This method updates the DB2 Administration Server (DAS) to the new level of DB2. |
int |
updateInstances(java.lang.String location)
Deprecated. This method updates each instance that belongs to the specified DB2 copy to the new level of DB2. |
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 DB2InstalledProduct(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 DB2InstalledProduct getInstalledProduct(java.lang.String location)
location
- The location of the installed product
public static DB2InstalledProduct getInstalledProduct(SupportBase callerBase, java.lang.String location)
callerBase
- SupportBase object to use.location
- The location of the product installed.
public static DB2InstalledProduct[] getInstalledProducts()
public static DB2InstalledProduct[] getInstalledProducts(SupportBase callerBase)
callerBase
- SupportBase object to use.
protected void setDB2CopyName(java.lang.String copyName)
copyName
- The copy name for this particular db2 installation (Windows).public java.lang.String getDB2CopyName()
protected void setDB2InstanceNames(java.lang.String[] instanceNames)
instanceName
- The instance name for this particular db2 installationpublic java.lang.String[] getDB2InstanceNames()
protected void setDB2LinuxInstanceUser(java.lang.String instanceUser)
instanceUser
- The instance user name for this particular DB2 install (Linux).public java.lang.String getLinuxInstanceUser()
protected void setDB2DASUser(java.lang.String dasUser)
dasUser
- The DAS user name.public java.lang.String getDB2DASUser()
public int setDB2CopyDefault(java.lang.String db2CopyName)
db2
- copy name
public java.lang.String runDB2Command(java.lang.String command)
command
- - The command to run.
public java.lang.String runDB2Command(java.lang.String command, java.lang.String db2InstanceUser)
command
- - The command to run.db2InstanceUser
- - The DB2 instance user. This parameter must be provided when running on Unix operating system.
public boolean isDatabaseInUse(java.lang.String databaseName, java.lang.String db2InstanceUser)
databaseName
- - The name of the database.db2InstanceUser
- - The DB2 instance user. This parameter must be provided when running on Unix operating system.
public java.lang.String[] getAllInstancesforDB2Copy(java.lang.String db2Location)
public int stopDB2(java.lang.String location)
location
- - Where DB2 is installed
public int startDB2(java.lang.String location)
location
- - Where DB2 is installed
public int stopDAS()
public int startDAS()
public int ipClean(java.lang.String location)
public int updateInstances(java.lang.String location)
location
- - the location of the DB2 copy
public int updateDAS(java.lang.String location)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |