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, undo
protected 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
Exception
protected void validateCustomStorageDataDirectories(org.apache.commons.cli.CommandLine commandLine, List<String> errors)
protected void waitForProcessToStop(String pid) throws Exception
waitForProcessToStop
in class ControlCommand
Exception
protected void waitForRHQServerToInitialize() throws Exception
Exception
protected boolean isRHQServerInitialized() throws IOException
IOException
protected int updateWindowsAgentService(File agentBasedir) throws Exception
Exception
protected int startRHQServerForInstallation() throws IOException
IOException
protected int runRHQServerInstaller() throws IOException
IOException
protected int installStorageNode(File storageBasedir, org.apache.commons.cli.CommandLine rhqctlCommandLine, boolean start) throws Exception
Exception
protected int installAgent(File agentBasedir, org.apache.commons.cli.CommandLine commandLine) throws Exception
Exception
protected void addUndoTaskToStopComponent(String componentArgument)
Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.