public abstract class AbstractInstall extends ControlCommand
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractInstall.ServerInstallerAction |
ControlCommand.UndoTask| Modifier and Type | Field and Description |
|---|---|
protected static String |
AGENT_CONFIG_OPTION |
protected static String |
AGENT_PREFERENCE |
protected static String |
FROM_AGENT_DIR_OPTION |
protected static String |
START_OPTION |
protected static String |
STORAGE_DATA_ROOT_DIR |
AGENT_BASEDIR_NAME, AGENT_OPTION, HELP_OPTION_1, HELP_OPTION_2, log, RHQ_AGENT_BASEDIR_PROP, RHQ_AGENT_PIDFILE_DIR_ENV_VARIABLE, RHQ_SERVER_PIDFILE_DIR_ENV_VARIABLE, SERVER_OPTION, STORAGE_BASEDIR_NAME, STORAGE_OPTION| Constructor and Description |
|---|
AbstractInstall() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addUndoTaskToStopComponent(String componentArgument) |
protected File |
getFileDownload(String directory,
String fileMatch) |
protected static File |
getFromAgentDir(org.apache.commons.cli.CommandLine commandLine) |
protected org.jboss.as.controller.client.ModelControllerClient |
getModelControllerClient() |
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 Future<Integer> |
runRHQServerInstaller(AbstractInstall.ServerInstallerAction serverInstallerAction) |
protected int |
startAgent(File agentBasedir) |
protected int |
startRHQServerForInstallation() |
protected int |
stopServer() |
protected int |
updateAndMoveExistingAgent(File agentBasedir,
File oldAgentDir,
File agentInstallerJar) |
protected int |
updateWindowsAgentService(File agentBasedir) |
protected void |
validateCustomStorageDataDirectories(org.apache.commons.cli.CommandLine commandLine,
List<String> errors) |
protected void |
waitForRHQServerToInitialize(Future<Integer> installerExitCode) |
addUndoTask, createNullOutputStream, exec, exec, getAgentBasedir, getBaseDir, getBinDir, getCommandLine, getCommandLine, getConsoleCommandLine, getDescription, getLogDir, getName, getOptions, getReadmeContent, getReadmeFilename, getRhqCtlProperties, getRhqCtlPropertiesPath, getScript, getServerInstalledMarkerFile, getServerPropertiesFile, getStorageBasedir, getStoragePid, getStoragePidFile, isAgentInstalled, isPortInUse, isServerInstalled, isServerInstalled, isStorageInstalled, isStorageRunning, isUnixPidRunning, isWindows, killPid, printUsage, setAgentBasedir, toIntList, undo, validateServerPropertiesFile, waitForProcessToStopprotected static final String AGENT_CONFIG_OPTION
protected static final String FROM_AGENT_DIR_OPTION
protected static final String START_OPTION
protected static final String AGENT_PREFERENCE
protected static 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 waitForRHQServerToInitialize(Future<Integer> installerExitCode) throws Exception
Exceptionprotected org.jboss.as.controller.client.ModelControllerClient getModelControllerClient()
throws IOException
IOExceptionprotected boolean isRHQServerInitialized()
throws IOException
IOExceptionprotected int updateWindowsAgentService(File agentBasedir) throws Exception
Exceptionprotected int startRHQServerForInstallation()
throws IOException
IOExceptionprotected Future<Integer> runRHQServerInstaller(AbstractInstall.ServerInstallerAction serverInstallerAction) throws Exception
Exceptionprotected 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 int updateAndMoveExistingAgent(File agentBasedir, File oldAgentDir, File agentInstallerJar) throws Exception
Exceptionprotected static File getFromAgentDir(org.apache.commons.cli.CommandLine commandLine)
protected void addUndoTaskToStopComponent(String componentArgument)
Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.