Class Artemis

java.lang.Object
org.apache.activemq.artemis.cli.Artemis
All Implemented Interfaces:
Runnable

public class Artemis extends Object implements Runnable
Artemis is the main CLI entry point for managing/running a broker.

Want to start or debug a broker from an IDE? This is probably the best class to run. Make sure set the -Dartemis.instance=path/to/instance system property. You should also use the 'apache-artemis' module for the class path since that includes all artemis modules.

Notice that this class should not use any logging as it's part of the bootstrap and using logging here could disrupt the order of bootstrapping on certain components (e.g. JMX being started from log4j)

  • Constructor Details

    • Artemis

      public Artemis()
  • Method Details

    • getCommandLine

      public picocli.CommandLine getCommandLine()
    • setCommandLine

      public Artemis setCommandLine(picocli.CommandLine commandLine)
    • run

      public void run()
      Specified by:
      run in interface Runnable
    • main

      public static void main(String... args) throws Exception
      Throws:
      Exception
    • verifyManagementDTO

      public static void verifyManagementDTO(File etc)
    • internalExecute

      public static Object internalExecute(String... args) throws Exception
      Throws:
      Exception
    • execute

      public static Object execute(File artemisHome, File artemisInstance, File etcFolder, List<String> args) throws Exception
      Throws:
      Exception
    • execute

      public static Object execute(boolean inputEnabled, boolean useSystemOut, boolean shellEnabled, File artemisHome, File artemisInstance, File etcFolder, String... args) throws Exception
      Throws:
      Exception
    • internalExecute

      public static Object internalExecute(boolean shellEnabled, File artemisHome, File artemisInstance, File etcFolder, String[] args, ActionContext context) throws Exception
      Throws:
      Exception
    • buildCommand

      public static picocli.CommandLine buildCommand(boolean includeInstanceCommands, boolean includeHomeCommands, boolean shellEnabled)
    • printBanner

      public static void printBanner(PrintStream out) throws Exception
      Throws:
      Exception
    • getNameFromBanner

      public static String getNameFromBanner() throws Exception
      Throws:
      Exception