public class StartCommand extends AbstractCommand
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_CONFIG_URI |
protected String[] |
helpFile |
COMMAND_OPTION_DELIMETER, context| Constructor and Description |
|---|
StartCommand() |
| Modifier and Type | Method and Description |
|---|---|
URI |
getConfigUri()
Gets the current configuration URI used by the start task
|
protected void |
printHelp()
Print the help messages for the browse command
|
protected void |
runTask(List<String> brokerURIs)
The default task to start a broker or a group of brokers
|
void |
setConfigUri(URI uri)
Sets the current configuration URI used by the start task
|
void |
startBroker(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 String DEFAULT_CONFIG_URI
public StartCommand()
protected void runTask(List<String> brokerURIs) throws Exception
runTask in class AbstractCommandbrokerURIs - Exceptionpublic void startBroker(URI configURI) throws Exception
configURI - Exceptionprotected void waitForShutdown() throws Exception
Exceptionpublic void setConfigUri(URI uri)
uri - public URI getConfigUri()
protected void printHelp()
printHelp in class AbstractCommandCopyright © 2005–2017. All rights reserved.