org.apache.activemq.console
Class Main

java.lang.Object
  extended by 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
static String TASK_DEFAULT_CLASS
           
 
Constructor Summary
Main()
           
 
Method Summary
 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)
           
 void runTaskClass(List<String> tokens)
           
 void setActiveMQHome(File activeMQHome)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TASK_DEFAULT_CLASS

public static final String TASK_DEFAULT_CLASS
See Also:
Constant Field Values
Constructor Detail

Main

public Main()
Method Detail

main

public static void main(String[] args)

parseExtensions

public void parseExtensions(List<String> tokens)

runTaskClass

public void runTaskClass(List<String> tokens)
                  throws Throwable
Throws:
Throwable

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()


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.