public class Upgrade extends AbstractInstall
ControlCommand.UndoTask
AGENT_CONFIG_OPTION, AGENT_PREFERENCE, START_OPTION
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 |
---|
Upgrade() |
Modifier and Type | Method and Description |
---|---|
void |
copyOracleDriver(File oldServerDir) |
protected int |
exec(org.apache.commons.cli.CommandLine commandLine) |
String |
getDescription() |
static File |
getFromAgentDir(org.apache.commons.cli.CommandLine commandLine) |
static File |
getFromServerDir(org.apache.commons.cli.CommandLine commandLine) |
String |
getName() |
org.apache.commons.cli.Options |
getOptions() |
protected String |
getReadmeFilename()
Subclasses can override this and return a non-null name of its readme file.
|
protected boolean |
isRhq410OrLater(org.apache.commons.cli.CommandLine commandLine) |
protected boolean |
isRhq48OrLater(org.apache.commons.cli.CommandLine commandLine) |
addUndoTaskToStopComponent, installAgent, installStorageNode, installWindowsService, isRHQServerInitialized, killAgent, runRHQServerInstaller, startAgent, startRHQServerForInstallation, stopServer, updateWindowsAgentService, validateCustomStorageDataDirectories, waitForProcessToStop, waitForRHQServerToInitialize
addUndoTask, createNullOutputStream, exec, getAgentBasedir, getAgentPid, getBaseDir, getBinDir, getCommandLine, getCommandLine, getLogDir, getReadmeContent, getRhqCtlProperties, getRhqCtlPropertiesPath, getScript, getServerInstalledMarkerFile, getServerPid, getServerPropertiesFile, getStorageBasedir, getStoragePid, getStoragePidFile, isAgentInstalled, isPortInUse, isServerInstalled, isServerInstalled, isStorageInstalled, isStorageRunning, isUnixPidRunning, isWindows, killPid, printUsage, setAgentBasedir, toIntList, undo
public String getName()
getName
in class ControlCommand
public String getDescription()
getDescription
in class ControlCommand
public org.apache.commons.cli.Options getOptions()
getOptions
in class ControlCommand
protected String getReadmeFilename()
ControlCommand
getReadmeFilename
in class ControlCommand
protected int exec(org.apache.commons.cli.CommandLine commandLine)
exec
in class ControlCommand
public void copyOracleDriver(File oldServerDir) throws IOException
IOException
public static File getFromAgentDir(org.apache.commons.cli.CommandLine commandLine)
public static File getFromServerDir(org.apache.commons.cli.CommandLine commandLine)
protected boolean isRhq48OrLater(org.apache.commons.cli.CommandLine commandLine)
protected boolean isRhq410OrLater(org.apache.commons.cli.CommandLine commandLine)
Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.