public class MavenBrokerSingletonManager extends Object implements MavenBrokerManager
| Constructor and Description |
|---|
MavenBrokerSingletonManager() |
| Modifier and Type | Method and Description |
|---|---|
BrokerService |
getBroker()
Return the broker service created.
|
void |
setBroker(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 MavenBrokerSingletonManager()
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 BrokerService getBroker()
getBroker in interface MavenBrokerManagerpublic void setBroker(BrokerService broker)
setBroker in interface MavenBrokerManagerbroker - Copyright © 2005–2016 FuseSource, Corp.. All rights reserved.