Class CreateCommand
java.lang.Object
org.apache.activemq.console.command.AbstractCommand
org.apache.activemq.console.command.CreateCommand
- All Implemented Interfaces:
Command
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Fileprotected final String[]protected final Stringprotected Stringprotected final Stringprotected final Stringprotected String[][]protected final String[]protected FileFields inherited from class org.apache.activemq.console.command.AbstractCommand
COMMAND_OPTION_DELIMETER, context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcopyActivemqConf(File srcBase, File targetBase, String activemqConf) protected voidcreateSubDirs(File target, String[] subDirs) getName()protected voidhandleOption(String token, List<String> tokens) Handle the --amqconf options.protected voidPrint the help messages for the specific taskprotected voidRun the specific task.protected voidwriteFileMapping(File targetBase, String[][] fileWriteMapping) Methods inherited from class org.apache.activemq.console.command.AbstractCommand
execute, handleException, parseOptions, printHelpFromFile, setCommandContext
-
Field Details
-
helpFile
-
DEFAULT_TARGET_ACTIVEMQ_CONF
- See Also:
-
DEFAULT_BROKERNAME_XPATH
- See Also:
-
BASE_SUB_DIRS
-
BROKER_NAME_REGEX
- See Also:
-
amqConf
-
fileWriteMap
-
brokerName
-
amqHome
-
targetAmqBase
-
-
Constructor Details
-
CreateCommand
public CreateCommand()
-
-
Method Details
-
getName
-
getOneLineDescription
-
runTask
Description copied from class:AbstractCommandRun the specific task.- Specified by:
runTaskin classAbstractCommand- Parameters:
tokens- - command arguments- Throws:
Exception
-
handleOption
Handle the --amqconf options.- Overrides:
handleOptionin classAbstractCommand- Parameters:
token- - option token to handletokens- - succeeding command arguments- Throws:
Exception
-
createSubDirs
- Throws:
IOException
-
writeFileMapping
- Throws:
IOException
-
copyActivemqConf
protected void copyActivemqConf(File srcBase, File targetBase, String activemqConf) throws IOException, ParserConfigurationException, SAXException, TransformerException, XPathExpressionException -
printHelp
protected void printHelp()Description copied from class:AbstractCommandPrint the help messages for the specific task- Specified by:
printHelpin classAbstractCommand
-