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) |
java.lang.String |
getName() |
java.lang.String |
getOneLineDescription() |
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, setCommandContextprotected 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 java.lang.String getName()
public java.lang.String getOneLineDescription()
protected void runTask(java.util.List<java.lang.String> tokens)
throws java.lang.Exception
AbstractCommandrunTask in class AbstractCommandtokens - - command argumentsjava.lang.Exceptionprotected void handleOption(java.lang.String token,
java.util.List<java.lang.String> tokens)
throws java.lang.Exception
handleOption in class AbstractCommandtoken - - option token to handletokens - - succeeding command argumentsjava.lang.Exceptionprotected void createSubDirs(java.io.File target,
java.lang.String[] subDirs)
throws java.io.IOException
java.io.IOExceptionprotected void writeFileMapping(java.io.File targetBase,
java.lang.String[][] fileWriteMapping)
throws java.io.IOException
java.io.IOExceptionprotected 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.IOExceptionjavax.xml.parsers.ParserConfigurationExceptionorg.xml.sax.SAXExceptionjavax.xml.transform.TransformerExceptionjavax.xml.xpath.XPathExpressionExceptionprotected void printHelp()
AbstractCommandprintHelp in class AbstractCommandCopyright © 2005-2013 Red Hat, Inc.. All Rights Reserved.