Package org.apache.activemq.maven
Interface MavenBrokerManager
-
- All Known Implementing Classes:
MavenBrokerSingletonManager
public interface MavenBrokerManagerManager of the broker used by the maven plugin.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BrokerServicegetBroker()Return the broker service created.voidsetBroker(BrokerService broker)Set the broker service managed to the one given.voidstart(boolean fork, String configUri)Start the broker using the fork setting and configuration at the given URI.voidstop()Stop the broker.
-
-
-
Method Detail
-
start
void start(boolean fork, String configUri) throws org.apache.maven.plugin.MojoExecutionExceptionStart the broker using the fork setting and configuration at the given URI.- Parameters:
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.- Throws:
org.apache.maven.plugin.MojoExecutionException
-
stop
void stop() throws org.apache.maven.plugin.MojoExecutionException
Stop the broker.- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getBroker
BrokerService getBroker()
Return the broker service created.
-
setBroker
void setBroker(BrokerService broker)
Set the broker service managed to the one given.- Parameters:
broker- activemq instance to manage.
-
-