public interface MavenBrokerManager
Modifier and Type | Method and Description |
---|---|
BrokerService |
getBroker()
Return the broker service created.
|
void |
setBroker(BrokerService broker)
Set the broker service managed to the one given.
|
void |
start(boolean fork,
String configUri)
Start the broker using the fork setting and configuration at the given URI.
|
void |
stop()
Stop the broker.
|
void start(boolean fork, String configUri) throws org.apache.maven.plugin.MojoExecutionException
fork
- true => run the broker asynchronously; false => run the broker synchronously (this method does not
return until the broker shuts down)configUri
- URI of the broker configuration; prefix with "xbean:file" to read XML configuration from a file.org.apache.maven.plugin.MojoExecutionException
void stop() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
BrokerService getBroker()
void setBroker(BrokerService broker)
broker
- activemq instance to manage.Copyright © 2005–2016 FuseSource, Corp.. All rights reserved.