Package org.apache.activemq.maven
Class Broker
- java.lang.Object
-
- org.apache.activemq.maven.Broker
-
public class Broker extends Object
Singleton facade between Maven and one ActiveMQ broker.
-
-
Constructor Summary
Constructors Constructor Description Broker()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BrokerService
getBroker()
Return the broker service created.static void
setBroker(BrokerService broker)
Override the default creation of the broker service.static void
start(boolean fork, String configUri)
static void
stop()
protected static void
waitForShutdown()
Wait for a shutdown invocation elsewhere
-
-
-
Method Detail
-
start
public static void start(boolean fork, String configUri) throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
stop
public static void stop() throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
waitForShutdown
protected static void waitForShutdown() throws Exception
Wait for a shutdown invocation elsewhere- Throws:
Exception
-
getBroker
public static BrokerService getBroker()
Return the broker service created.
-
setBroker
public static void setBroker(BrokerService broker)
Override the default creation of the broker service. Primarily added for testing purposes.- Parameters:
broker
-
-
-