org.apache.activemq.console.command
public class CreateCommand extends AbstractCommand
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
amqConf |
protected java.io.File |
amqHome |
protected java.lang.String[] |
BASE_SUB_DIRS |
protected java.lang.String |
BROKER_NAME_REGEX |
protected java.lang.String |
brokerName |
protected java.lang.String |
DEFAULT_BROKERNAME_XPATH |
protected java.lang.String |
DEFAULT_TARGET_ACTIVEMQ_CONF |
protected java.lang.String[][] |
fileWriteMap |
protected java.lang.String[] |
helpFile |
protected java.io.File |
targetAmqBase |
COMMAND_OPTION_DELIMETER, context
Constructor and Description |
---|
CreateCommand() |
Modifier and Type | Method and Description |
---|---|
protected void |
copyActivemqConf(java.io.File srcBase,
java.io.File targetBase,
java.lang.String activemqConf) |
protected void |
createSubDirs(java.io.File target,
java.lang.String[] subDirs) |
protected void |
handleOption(java.lang.String token,
java.util.List<java.lang.String> tokens)
Handle the --amqconf options.
|
protected void |
printHelp()
Print the help messages for the specific task
|
protected void |
runTask(java.util.List<java.lang.String> tokens)
Run the specific task.
|
protected void |
writeFileMapping(java.io.File targetBase,
java.lang.String[][] fileWriteMapping) |
execute, parseOptions, setCommandContext
protected final java.lang.String[] helpFile
protected final java.lang.String DEFAULT_TARGET_ACTIVEMQ_CONF
protected final java.lang.String DEFAULT_BROKERNAME_XPATH
protected final java.lang.String[] BASE_SUB_DIRS
protected final java.lang.String BROKER_NAME_REGEX
protected java.lang.String amqConf
protected java.lang.String[][] fileWriteMap
protected java.lang.String brokerName
protected java.io.File amqHome
protected java.io.File targetAmqBase
public CreateCommand()
protected void runTask(java.util.List<java.lang.String> tokens) throws java.lang.Exception
AbstractCommand
runTask
in class AbstractCommand
tokens
- - command argumentsjava.lang.Exception
protected void handleOption(java.lang.String token, java.util.List<java.lang.String> tokens) throws java.lang.Exception
handleOption
in class AbstractCommand
token
- - option token to handletokens
- - succeeding command argumentsjava.lang.Exception
protected void createSubDirs(java.io.File target, java.lang.String[] subDirs) throws java.io.IOException
java.io.IOException
protected void writeFileMapping(java.io.File targetBase, java.lang.String[][] fileWriteMapping) throws java.io.IOException
java.io.IOException
protected void copyActivemqConf(java.io.File srcBase, java.io.File targetBase, java.lang.String activemqConf) throws java.io.IOException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, javax.xml.transform.TransformerException, javax.xml.xpath.XPathExpressionException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
javax.xml.transform.TransformerException
javax.xml.xpath.XPathExpressionException
protected void printHelp()
AbstractCommand
printHelp
in class AbstractCommand
Copyright © 2005-2014. All Rights Reserved.