public class CreateCommand extends AbstractCommand
Modifier and Type | Field and Description |
---|---|
protected String |
amqConf |
protected File |
amqHome |
protected String[] |
BASE_SUB_DIRS |
protected String |
BROKER_NAME_REGEX |
protected String |
brokerName |
protected String |
DEFAULT_BROKERNAME_XPATH |
protected String |
DEFAULT_TARGET_ACTIVEMQ_CONF |
protected String[][] |
fileWriteMap |
protected String[] |
helpFile |
protected File |
targetAmqBase |
COMMAND_OPTION_DELIMETER, context
Constructor and Description |
---|
CreateCommand() |
Modifier and Type | Method and Description |
---|---|
protected void |
copyActivemqConf(File srcBase,
File targetBase,
String activemqConf) |
protected void |
createSubDirs(File target,
String[] subDirs) |
String |
getName() |
String |
getOneLineDescription() |
protected void |
handleOption(String token,
List<String> tokens)
Handle the --amqconf options.
|
protected void |
printHelp()
Print the help messages for the specific task
|
protected void |
runTask(List<String> tokens)
Run the specific task.
|
protected void |
writeFileMapping(File targetBase,
String[][] fileWriteMapping) |
execute, parseOptions, printHelpFromFile, setCommandContext
protected final String DEFAULT_TARGET_ACTIVEMQ_CONF
protected final String DEFAULT_BROKERNAME_XPATH
protected final String[] BASE_SUB_DIRS
protected final String BROKER_NAME_REGEX
protected String[][] fileWriteMap
protected String brokerName
protected File targetAmqBase
public CreateCommand()
public String getOneLineDescription()
protected void runTask(List<String> tokens) throws Exception
AbstractCommand
runTask
in class AbstractCommand
tokens
- - command argumentsException
protected void handleOption(String token, List<String> tokens) throws Exception
handleOption
in class AbstractCommand
token
- - option token to handletokens
- - succeeding command argumentsException
protected void createSubDirs(File target, String[] subDirs) throws IOException
IOException
protected void writeFileMapping(File targetBase, String[][] fileWriteMapping) throws IOException
IOException
protected void copyActivemqConf(File srcBase, File targetBase, String activemqConf) throws IOException, ParserConfigurationException, SAXException, TransformerException, XPathExpressionException
protected void printHelp()
AbstractCommand
printHelp
in class AbstractCommand
Copyright © 2005–2018 FuseSource, Corp.. All rights reserved.