public abstract class AbstractInstall extends ControlCommand
ControlCommand.UndoTask| Modifier and Type | Field and Description |
|---|---|
protected String |
AGENT_CONFIG_OPTION |
protected String |
AGENT_PREFERENCE |
protected String |
START_OPTION |
protected String |
STORAGE_DATA_ROOT_DIR |
AGENT_BASEDIR_NAME, AGENT_OPTION, HELP_OPTION_1, HELP_OPTION_2, log, RHQ_AGENT_BASEDIR_PROP, SERVER_OPTION, STORAGE_BASEDIR_NAME, STORAGE_OPTION| Constructor and Description |
|---|
AbstractInstall() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addUndoTaskToStopComponent(String componentArgument) |
protected int |
installAgent(File agentBasedir,
org.apache.commons.cli.CommandLine commandLine) |
protected int |
installStorageNode(File storageBasedir,
org.apache.commons.cli.CommandLine rhqctlCommandLine,
boolean start) |
protected int |
installWindowsService(File workingDir,
String batFile,
boolean replaceExistingService,
boolean start) |
protected boolean |
isRHQServerInitialized() |
protected int |
killAgent(File agentBasedir) |
protected int |
runRHQServerInstaller() |
protected int |
startAgent(File agentBasedir) |
protected int |
startRHQServerForInstallation() |
protected int |
stopServer() |
protected int |
updateWindowsAgentService(File agentBasedir) |
protected void |
validateCustomStorageDataDirectories(org.apache.commons.cli.CommandLine commandLine,
List<String> errors) |
protected void |
waitForProcessToStop(String pid) |
protected void |
waitForRHQServerToInitialize() |
addUndoTask, createNullOutputStream, exec, exec, getAgentBasedir, getAgentPid, getBaseDir, getBinDir, getCommandLine, getCommandLine, getDescription, getLogDir, getName, getOptions, getReadmeContent, getReadmeFilename, getRhqCtlProperties, getRhqCtlPropertiesPath, getScript, getServerInstalledMarkerFile, getServerPid, getServerPropertiesFile, getStorageBasedir, getStoragePid, getStoragePidFile, isAgentInstalled, isPortInUse, isServerInstalled, isServerInstalled, isStorageInstalled, isStorageRunning, isUnixPidRunning, isWindows, killPid, printUsage, setAgentBasedir, toIntList, undoprotected final String AGENT_CONFIG_OPTION
protected final String START_OPTION
protected final String AGENT_PREFERENCE
protected final String STORAGE_DATA_ROOT_DIR
protected int installWindowsService(File workingDir, String batFile, boolean replaceExistingService, boolean start) throws Exception
Exceptionprotected void validateCustomStorageDataDirectories(org.apache.commons.cli.CommandLine commandLine,
List<String> errors)
protected void waitForProcessToStop(String pid) throws Exception
waitForProcessToStop in class ControlCommandExceptionprotected void waitForRHQServerToInitialize()
throws Exception
Exceptionprotected boolean isRHQServerInitialized()
throws IOException
IOExceptionprotected int updateWindowsAgentService(File agentBasedir) throws Exception
Exceptionprotected int startRHQServerForInstallation()
throws IOException
IOExceptionprotected int runRHQServerInstaller()
throws IOException
IOExceptionprotected int installStorageNode(File storageBasedir, org.apache.commons.cli.CommandLine rhqctlCommandLine, boolean start) throws Exception
Exceptionprotected int installAgent(File agentBasedir, org.apache.commons.cli.CommandLine commandLine) throws Exception
Exceptionprotected void addUndoTaskToStopComponent(String componentArgument)
Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.