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
MavenBrokerManager
start
in interface MavenBrokerManager
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
public void stop() throws org.apache.maven.plugin.MojoExecutionException
MavenBrokerManager
stop
in interface MavenBrokerManager
org.apache.maven.plugin.MojoExecutionException
protected void waitForShutdown() throws Exception
Exception
public BrokerService getBroker()
getBroker
in interface MavenBrokerManager
public void setBroker(BrokerService broker)
setBroker
in interface MavenBrokerManager
broker
- Copyright © 2005–2016 FuseSource, Corp.. All rights reserved.