Class Run
-
- All Implemented Interfaces:
Action
@Command(name="run", description="runs the broker instance") public class Run extends LockAbstract
-
-
Field Summary
Fields Modifier and Type Field Description static ReusableLatchlatchRunning-
Fields inherited from class org.apache.activemq.artemis.cli.commands.tools.DataAbstract
binding, journal, largeMessges, paging
-
Fields inherited from class org.apache.activemq.artemis.cli.commands.Configurable
global
-
Fields inherited from class org.apache.activemq.artemis.cli.commands.ActionAbstract
context, DEFAULT_BROKER_ACCEPTOR, DEFAULT_BROKER_URL, verbose
-
-
Constructor Summary
Constructors Constructor Description Run()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectexecute(ActionContext context)static voidsetEmbedded(boolean embedded)This will disable the System.exit at the end of the server.stop, as that means there are other things happening on the same VM.protected voidstop()-
Methods inherited from class org.apache.activemq.artemis.cli.commands.tools.LockAbstract
unlock
-
Methods inherited from class org.apache.activemq.artemis.cli.commands.tools.DataAbstract
getBinding, getJournal, getLargeMessages, getPaging
-
Methods inherited from class org.apache.activemq.artemis.cli.commands.Configurable
getBrokerDTO, getConfiguration, getFileConfiguration, getManagementConfiguration, getManagementDTO, helpGroup, readConfiguration, treatError
-
Methods inherited from class org.apache.activemq.artemis.cli.commands.ActionAbstract
checkOptions, getBrokerConfiguration, getBrokerEtc, getBrokerHome, getBrokerInstance, getBrokerURIInstance, getBrokerURLInstance, isVerbose, setHomeValues
-
-
-
-
Field Detail
-
latchRunning
public static final ReusableLatch latchRunning
-
-
Method Detail
-
setEmbedded
public static void setEmbedded(boolean embedded)
This will disable the System.exit at the end of the server.stop, as that means there are other things happening on the same VM.- Parameters:
embedded-
-
execute
public Object execute(ActionContext context) throws Exception
- Specified by:
executein interfaceAction- Overrides:
executein classLockAbstract- Throws:
Exception
-
stop
protected void stop()
-
-