Package org.apache.activemq.artemis.cli
Class Artemis
java.lang.Object
org.apache.activemq.artemis.cli.Artemis
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 Objectpicocli.CommandLinestatic Stringstatic ObjectinternalExecute(boolean shellEnabled, File artemisHome, File artemisInstance, File etcFolder, String[] args, ActionContext context) static ObjectinternalExecute(String... args) static voidstatic voidprintBanner(PrintStream out) voidrun()setCommandLine(picocli.CommandLine commandLine) static voidverifyManagementDTO(File etc)
-
Constructor Details
-
Artemis
public Artemis()
-
-
Method Details
-
getCommandLine
public picocli.CommandLine getCommandLine() -
setCommandLine
-
run
public void run() -
main
- Throws:
Exception
-
verifyManagementDTO
-
internalExecute
- 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
- Throws:
Exception
-
getNameFromBanner
- Throws:
Exception
-