Class Broker


  • public class Broker
    extends Object
    Singleton facade between Maven and one ActiveMQ broker.
    • Constructor Detail

      • Broker

        public Broker()
    • Method Detail

      • start

        public static void start​(boolean fork,
                                 String configUri)
                          throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • stop

        public static void stop()
                         throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • waitForShutdown

        protected static void waitForShutdown()
                                       throws Exception
        Wait for a shutdown invocation elsewhere
        Throws:
        Exception
      • getBroker

        public static BrokerService getBroker()
        Return the broker service created.
      • setBroker

        public static void setBroker​(BrokerService broker)
        Override the default creation of the broker service. Primarily added for testing purposes.
        Parameters:
        broker -