public class MavenBrokerSingletonManager extends Object implements MavenBrokerManager
| Constructor and Description |
|---|
MavenBrokerSingletonManager() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.activemq.broker.BrokerService |
getBroker()
Return the broker service created.
|
void |
setBroker(org.apache.activemq.broker.BrokerService broker)
Override the default creation of the broker service.
|
void |
start(boolean fork,
String configUri)
Start the broker using the fork setting and configuration at the given URI.
|
void |
stop()
Stop the broker.
|
protected void |
waitForShutdown()
Wait for a shutdown invocation elsewhere
|
public void start(boolean fork,
String configUri)
throws org.apache.maven.plugin.MojoExecutionException
MavenBrokerManagerstart in interface MavenBrokerManagerfork - 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.MojoExecutionExceptionpublic void stop()
throws org.apache.maven.plugin.MojoExecutionException
MavenBrokerManagerstop in interface MavenBrokerManagerorg.apache.maven.plugin.MojoExecutionExceptionprotected void waitForShutdown()
throws Exception
Exceptionpublic org.apache.activemq.broker.BrokerService getBroker()
getBroker in interface MavenBrokerManagerpublic void setBroker(org.apache.activemq.broker.BrokerService broker)
setBroker in interface MavenBrokerManagerbroker - Copyright © 2015. All rights reserved.