|
|||||||||||
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.ConsoleAgentInstalledProduct
public class ConsoleAgentInstalledProduct
Handles pre-installation and post-installation activities for the Console agent.
Field Summary |
---|
Fields inherited from class com.ibm.jsdt.support.deploymenthelper.installedproduct.InstalledProduct |
---|
helper |
Constructor Summary | |
---|---|
protected |
ConsoleAgentInstalledProduct(java.lang.String version,
java.lang.String location)
Constructs a new ConsoleAgentInstalledProduct containing the version and the location of the installed product. |
Method Summary | |
---|---|
void |
clearProductsDependentOn(java.lang.String entry)
Clears an entry in the console agent properties file for the ProductsDependentOnConsoleAgent key. |
void |
clearPropertiesFileKey(java.lang.String key)
Clears the entire value in the properties file for a particular key. |
int |
determineNumberOfEntriesForKey(java.lang.String key)
The number of entries that exists in a key value. |
boolean |
doesMiddlewareEntryExist(java.lang.String key,
java.lang.String location)
Determines if a particular middleware is updated in the console agent properties file. |
boolean |
doesProductsDependentOnEntryExists(java.lang.String value)
Determines if the console agent properties file contains the requested ProductsDependentOnConsoleAgent value |
java.lang.String |
getConsoleAgentLogLocation()
Determines the Console agent log location. |
java.lang.String |
getConsoleAgentProcessIdFile()
Gets the location of the Console Agent Process ID File |
java.lang.String |
getConsoleAgentPropertiesFile()
Gets the console agent properties file. |
static ConsoleAgentInstalledProduct |
getInstalledProduct(java.lang.String location)
Gets the Console agent installed product if location is provided. |
static ConsoleAgentInstalledProduct[] |
getInstalledProducts()
Gets the Console Agent installed product from the target computer. |
java.lang.String |
getLastEntryFromPropFileValue(java.lang.String key)
Using the key, returns the last entry from a list in property file. |
boolean |
isConsoleAgentRunning()
Checks to see if console agent is running or not. |
static void |
main(java.lang.String[] args)
Main program |
boolean |
restartConsoleAgent()
Restarts console agent. |
boolean |
restartConsoleAgentUsingServicesFile()
Starts console agent service using a script file that will be generated on the machine. |
boolean |
startConsoleAgent()
Starts console agent. |
boolean |
stopConsoleAgent()
Stops the console agent. |
void |
updateMiddlewareLocationInfo(java.lang.String key,
java.lang.String location)
Updates the console agent properties file with the IBM middleware installation location information. |
void |
updateProductsDependentOn(java.lang.String entry)
Updates the console agent properties file ProductsDependentOnConsoleAgent key. |
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 |
Constructor Detail |
---|
protected ConsoleAgentInstalledProduct(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 ConsoleAgentInstalledProduct getInstalledProduct(java.lang.String location)
location
- The location of the installed product.
public static ConsoleAgentInstalledProduct[] getInstalledProducts()
public java.lang.String getConsoleAgentLogLocation()
public java.lang.String getConsoleAgentPropertiesFile()
public java.lang.String getConsoleAgentProcessIdFile()
public boolean isConsoleAgentRunning()
public void updateMiddlewareLocationInfo(java.lang.String key, java.lang.String location)
key
- The console agent properties file key.location
- The location to add.public void clearPropertiesFileKey(java.lang.String key)
key
- The console agent properties file key.public boolean doesProductsDependentOnEntryExists(java.lang.String value)
value
- The requested value
public boolean doesMiddlewareEntryExist(java.lang.String key, java.lang.String location)
key
- The key in the properties file to search for.location
- The request value.
public void updateProductsDependentOn(java.lang.String entry)
entry
- The middleware entry to update.public void clearProductsDependentOn(java.lang.String entry)
entry
- The entry to clear.public int determineNumberOfEntriesForKey(java.lang.String key)
key
- - The key to determine the number of entries.
public boolean stopConsoleAgent()
public boolean startConsoleAgent()
public boolean restartConsoleAgentUsingServicesFile()
public boolean restartConsoleAgent()
public java.lang.String getLastEntryFromPropFileValue(java.lang.String key)
key
- The entry that you want to search for.
public static void main(java.lang.String[] args)
args
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |