Package org.apache.activemq.console
Class Main
java.lang.Object
org.apache.activemq.console.Main
Main class that can bootstrap an ActiveMQ broker console. Handles command
line argument parsing to set up and run broker tasks.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddClassPath(File classpath) voidaddClassPathList(String fileList) voidaddExtensionDirectory(File directory) booleanThe extension directory feature will not work if the broker factory is already in the classpath since we have to load him from a child ClassLoader we build for it to work correctly.static voidvoidparseExtensions(List<String> tokens) intrunTaskClass(List<String> tokens) voidsetActiveMQHome(File activeMQHome)
-
Field Details
-
TASK_DEFAULT_CLASS
- See Also:
-
-
Constructor Details
-
Main
public Main()
-
-
Method Details
-
main
-
parseExtensions
-
runTaskClass
- Throws:
Throwable
-
addExtensionDirectory
-
addClassPathList
-
addClassPath
-
canUseExtdir
public boolean canUseExtdir()The extension directory feature will not work if the broker factory is already in the classpath since we have to load him from a child ClassLoader we build for it to work correctly.- Returns:
- true, if extension dir can be used. false otherwise.
-
getClassLoader
- Throws:
MalformedURLException
-
setActiveMQHome
-
getActiveMQHome
-
getActiveMQBase
-
getActiveMQConfig
-
getActiveMQDataDir
-
getExtensionDirForLogging
-