Package org.apache.activemq.console
Class Main
- java.lang.Object
-
- org.apache.activemq.console.Main
-
public class Main extends Object
Main class that can bootstrap an ActiveMQ broker console. Handles command line argument parsing to set up and run broker tasks.
-
-
Field Summary
Fields Modifier and Type Field Description static String
TASK_DEFAULT_CLASS
-
Constructor Summary
Constructors Constructor Description Main()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addClassPath(File classpath)
void
addClassPathList(String fileList)
void
addExtensionDirectory(File directory)
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.File
getActiveMQBase()
File
getActiveMQConfig()
File
getActiveMQDataDir()
File
getActiveMQHome()
ClassLoader
getClassLoader()
String
getExtensionDirForLogging()
static void
main(String[] args)
void
parseExtensions(List<String> tokens)
int
runTaskClass(List<String> tokens)
void
setActiveMQHome(File activeMQHome)
-
-
-
Field Detail
-
TASK_DEFAULT_CLASS
public static final String TASK_DEFAULT_CLASS
- See Also:
- Constant Field Values
-
-
Method Detail
-
main
public static void main(String[] args)
-
addExtensionDirectory
public void addExtensionDirectory(File directory)
-
addClassPathList
public void addClassPathList(String fileList)
-
addClassPath
public void addClassPath(File classpath)
-
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
public ClassLoader getClassLoader() throws MalformedURLException
- Throws:
MalformedURLException
-
setActiveMQHome
public void setActiveMQHome(File activeMQHome)
-
getActiveMQHome
public File getActiveMQHome()
-
getActiveMQBase
public File getActiveMQBase()
-
getActiveMQConfig
public File getActiveMQConfig()
-
getActiveMQDataDir
public File getActiveMQDataDir()
-
getExtensionDirForLogging
public String getExtensionDirForLogging()
-
-