public class StartCommand extends AbstractCommand
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_CONFIG_URI |
protected java.lang.String[] |
helpFile |
COMMAND_OPTION_DELIMETER, context| Constructor and Description |
|---|
StartCommand() |
| Modifier and Type | Method and Description |
|---|---|
java.net.URI |
getConfigUri()
Gets the current configuration URI used by the start task
|
java.lang.String |
getName() |
java.lang.String |
getOneLineDescription() |
protected void |
printHelp()
Print the help messages for the browse command
|
protected void |
runTask(java.util.List<java.lang.String> brokerURIs)
The default task to start a broker or a group of brokers
|
void |
setConfigUri(java.net.URI uri)
Sets the current configuration URI used by the start task
|
void |
startBroker(java.net.URI configURI)
Create and run a broker specified by the given configuration URI
|
protected void |
waitForShutdown()
Wait for a shutdown invocation elsewhere
|
execute, handleOption, parseOptions, setCommandContextpublic static final java.lang.String DEFAULT_CONFIG_URI
protected java.lang.String[] helpFile
public java.lang.String getName()
public java.lang.String getOneLineDescription()
protected void runTask(java.util.List<java.lang.String> brokerURIs)
throws java.lang.Exception
runTask in class AbstractCommandbrokerURIs - java.lang.Exceptionpublic void startBroker(java.net.URI configURI)
throws java.lang.Exception
configURI - java.lang.Exceptionprotected void waitForShutdown()
throws java.lang.Exception
java.lang.Exceptionpublic void setConfigUri(java.net.URI uri)
uri - public java.net.URI getConfigUri()
protected void printHelp()
printHelp in class AbstractCommandCopyright © 2005-2013 Red Hat, Inc.. All Rights Reserved.