Class Run
- java.lang.Object
-
- 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 org.apache.activemq.artemis.utils.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
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 java.lang.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, getActionContext, getBrokerConfiguration, getBrokerEtc, getBrokerHome, getBrokerInstance, getBrokerURIInstance, getBrokerURLInstance, isVerbose, setHomeValues
-
-
-
-
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 java.lang.Object execute(ActionContext context) throws java.lang.Exception
- Specified by:
executein interfaceAction- Overrides:
executein classLockAbstract- Throws:
java.lang.Exception
-
stop
protected void stop()
-
-