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 Details

  • Constructor Details

    • Main

      public Main()
  • Method Details

    • main

      public static void main(String[] args)
    • parseExtensions

      public void parseExtensions(List<String> tokens)
    • runTaskClass

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