| Modifier and Type | Field and Description |
|---|---|
protected static String |
AGENT_BASEDIR_NAME |
static String |
AGENT_OPTION |
protected org.apache.commons.logging.Log |
log |
static String |
RHQ_AGENT_BASEDIR_PROP |
static String |
RHQ_STORAGE_BASEDIR_PROP |
static String |
SERVER_OPTION |
protected static String |
STORAGE_BASEDIR_NAME |
static String |
STORAGE_OPTION |
| Constructor and Description |
|---|
ControlCommand() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
exec(org.apache.commons.cli.CommandLine commandLine) |
void |
exec(String[] args) |
protected File |
getAgentBasedir() |
protected String |
getAgentPid() |
protected File |
getBaseDir() |
protected File |
getBinDir() |
protected org.apache.commons.exec.CommandLine |
getCommandLine(boolean addShExt,
String scriptName,
String... args) |
protected org.apache.commons.exec.CommandLine |
getCommandLine(String scriptName,
String... args) |
abstract String |
getDescription() |
protected File |
getLogDir() |
abstract String |
getName() |
abstract org.apache.commons.cli.Options |
getOptions() |
protected String |
getProperty(String key) |
protected File |
getRhqCtlProperties() |
protected String |
getScript(String scriptName) |
protected String |
getServerPid() |
protected File |
getStorageBasedir() |
protected String |
getStoragePid() |
protected File |
getStoragePidFile() |
protected boolean |
hasProperty(String key) |
protected boolean |
isAgentInstalled() |
protected boolean |
isPortInUse(String host,
int port) |
protected boolean |
isServerInstalled() |
protected boolean |
isServerInstalled(File baseDir) |
protected boolean |
isStorageInstalled() |
protected boolean |
isStorageRunning() |
protected boolean |
isUnixPidRunning(String pid) |
protected boolean |
isWindows() |
protected void |
killPid(String pid) |
void |
printUsage() |
protected void |
putProperty(String key,
String value) |
protected List<Integer> |
toIntList(String s) |
protected void |
waitForProcessToStop(String pid) |
public static final String SERVER_OPTION
public static final String STORAGE_OPTION
public static final String AGENT_OPTION
public static final String RHQ_STORAGE_BASEDIR_PROP
public static final String RHQ_AGENT_BASEDIR_PROP
protected static final String STORAGE_BASEDIR_NAME
protected static final String AGENT_BASEDIR_NAME
protected final org.apache.commons.logging.Log log
public abstract String getName()
public abstract String getDescription()
public abstract org.apache.commons.cli.Options getOptions()
protected abstract void exec(org.apache.commons.cli.CommandLine commandLine)
public void exec(String[] args)
public void printUsage()
protected File getBaseDir()
protected File getBinDir()
protected File getLogDir()
protected File getStorageBasedir()
protected File getAgentBasedir()
protected boolean isServerInstalled()
protected boolean isServerInstalled(File baseDir)
protected boolean isAgentInstalled()
protected boolean isStorageInstalled()
protected File getStoragePidFile()
protected String getStoragePid() throws IOException
IOExceptionprotected String getServerPid() throws IOException
IOExceptionprotected String getAgentPid() throws IOException
IOExceptionprotected boolean hasProperty(String key)
protected File getRhqCtlProperties()
protected org.apache.commons.exec.CommandLine getCommandLine(String scriptName, String... args)
protected org.apache.commons.exec.CommandLine getCommandLine(boolean addShExt,
String scriptName,
String... args)
protected boolean isWindows()
protected boolean isPortInUse(String host, int port)
protected void waitForProcessToStop(String pid) throws Exception
Exceptionprotected void killPid(String pid) throws IOException
IOExceptionprotected boolean isUnixPidRunning(String pid)
protected boolean isStorageRunning()
throws IOException
IOExceptionCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.