org.apache.activemq.console
Class Main

java.lang.Object
  extended by org.apache.activemq.console.Main

public class Main
extends java.lang.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 java.lang.String TASK_DEFAULT_CLASS
           
 
Constructor Summary
Main()
           
 
Method Summary
 void addClassPath(java.io.File classpath)
           
 void addClassPathList(java.lang.String fileList)
           
 void addExtensionDirectory(java.io.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.
 java.io.File getActiveMQBase()
           
 java.io.File getActiveMQConfig()
           
 java.io.File getActiveMQDataDir()
           
 java.io.File getActiveMQHome()
           
 java.lang.ClassLoader getClassLoader()
           
static void main(java.lang.String[] args)
           
 void parseExtensions(java.util.List<java.lang.String> tokens)
           
 void runTaskClass(java.util.List<java.lang.String> tokens)
           
 void setActiveMQHome(java.io.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 java.lang.String TASK_DEFAULT_CLASS
See Also:
Constant Field Values
Constructor Detail

Main

public Main()
Method Detail

main

public static void main(java.lang.String[] args)

parseExtensions

public void parseExtensions(java.util.List<java.lang.String> tokens)

runTaskClass

public void runTaskClass(java.util.List<java.lang.String> tokens)
                  throws java.lang.Throwable
Throws:
java.lang.Throwable

addExtensionDirectory

public void addExtensionDirectory(java.io.File directory)

addClassPathList

public void addClassPathList(java.lang.String fileList)

addClassPath

public void addClassPath(java.io.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 java.lang.ClassLoader getClassLoader()
                                     throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

setActiveMQHome

public void setActiveMQHome(java.io.File activeMQHome)

getActiveMQHome

public java.io.File getActiveMQHome()

getActiveMQBase

public java.io.File getActiveMQBase()

getActiveMQConfig

public java.io.File getActiveMQConfig()

getActiveMQDataDir

public java.io.File getActiveMQDataDir()


Copyright © 2005-2016. All Rights Reserved.