Package org.apache.activemq.maven
Interface MavenBrokerManager
-
- All Known Implementing Classes:
MavenBrokerSingletonManager
public interface MavenBrokerManager
Manager of the broker used by the maven plugin.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
start
void start(boolean fork, String configUri) throws org.apache.maven.plugin.MojoExecutionException
Start 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.
-
-