Class 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 Detail

      • Artemis

        public Artemis()
    • Method Detail

      • getCommandLine

        public picocli.CommandLine getCommandLine()
      • setCommandLine

        public Artemis setCommandLine​(picocli.CommandLine commandLine)
      • run

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

        public static void verifyManagementDTO​(File etc)
      • execute

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

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