Package org.apache.activemq.artemis.cli
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 Summary
Constructors Constructor Description Artemis()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static picocli.CommandLinebuildCommand(boolean includeInstanceCommands, boolean includeHomeCommands, boolean shellEnabled)static Objectexecute(boolean inputEnabled, boolean useSystemOut, boolean shellEnabled, File artemisHome, File artemisInstance, File etcFolder, String... args)static Objectexecute(File artemisHome, File artemisInstance, File etcFolder, List<String> args)picocli.CommandLinegetCommandLine()static StringgetNameFromBanner()static ObjectinternalExecute(boolean shellEnabled, File artemisHome, File artemisInstance, File etcFolder, String[] args, ActionContext context)static ObjectinternalExecute(String... args)static voidmain(String... args)static voidprintBanner(PrintStream out)voidrun()ArtemissetCommandLine(picocli.CommandLine commandLine)static voidverifyManagementDTO(File etc)
-
-
-
Method Detail
-
getCommandLine
public picocli.CommandLine getCommandLine()
-
setCommandLine
public Artemis setCommandLine(picocli.CommandLine commandLine)
-
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
-
-