public abstract class AbstractInstall extends ControlCommand
| Modifier and Type | Field and Description |
|---|---|
protected String |
STORAGE_CONFIG_OPTION |
protected String |
STORAGE_CONFIG_PROP |
protected String |
STORAGE_DATA_ROOT_DIR |
AGENT_BASEDIR_NAME, AGENT_OPTION, log, RHQ_AGENT_BASEDIR_PROP, RHQ_STORAGE_BASEDIR_PROP, SERVER_OPTION, STORAGE_BASEDIR_NAME, STORAGE_OPTION| Constructor and Description |
|---|
AbstractInstall() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
installStorageNode(File storageBasedir,
org.apache.commons.cli.CommandLine rhqctlCommandLine) |
protected void |
installWindowsService(File workingDir,
String batFile,
boolean replaceExistingService,
boolean start) |
protected boolean |
isRHQServerInitialized() |
protected boolean |
isUnixPidRunning(String pid) |
protected void |
runRHQServerInstaller() |
protected void |
startAgent(File agentBasedir)
Same as
|
protected void |
startAgent(File agentBasedir,
boolean updateWindowsService) |
protected void |
startRHQServerForInstallation() |
protected void |
stopAgent(File agentBasedir) |
protected void |
stopServer(File serverBasedir) |
protected void |
validateCustomStorageDataDirectories(org.apache.commons.cli.CommandLine commandLine,
List<String> errors) |
protected void |
waitForProcessToStop(String pid) |
protected void |
waitForRHQServerToInitialize() |
exec, exec, getAgentBasedir, getAgentPid, getBaseDir, getBinDir, getCommandLine, getCommandLine, getDescription, getLogDir, getName, getOptions, getProperty, getRhqCtlProperties, getScript, getServerPid, getStorageBasedir, getStoragePid, getStoragePidFile, hasProperty, isAgentInstalled, isPortInUse, isServerInstalled, isServerInstalled, isStorageInstalled, isStorageRunning, isWindows, killPid, printUsage, putProperty, toIntListprotected final String STORAGE_CONFIG_OPTION
protected final String STORAGE_DATA_ROOT_DIR
protected final String STORAGE_CONFIG_PROP
protected void 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 boolean isUnixPidRunning(String pid)
isUnixPidRunning in class ControlCommandprotected void waitForRHQServerToInitialize()
throws Exception
Exceptionprotected boolean isRHQServerInitialized()
throws IOException
IOExceptionprotected void startAgent(File agentBasedir) throws Exception
startAgent(agentBasedir, false);
agentBasedir - Exceptionprotected void startAgent(File agentBasedir, boolean updateWindowsService) throws Exception
Exceptionprotected void startRHQServerForInstallation()
throws IOException
IOExceptionprotected void runRHQServerInstaller()
throws IOException
IOExceptionprotected int installStorageNode(File storageBasedir, org.apache.commons.cli.CommandLine rhqctlCommandLine) throws IOException
IOExceptionCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.