Class FileBroker

  • All Implemented Interfaces:
    org.apache.activemq.artemis.core.server.ActiveMQComponent, org.apache.activemq.artemis.core.server.ServiceComponent, Broker

    public class FileBroker
    extends java.lang.Object
    implements Broker
    • Constructor Summary

      Constructors 
      Constructor Description
      FileBroker​(org.apache.activemq.artemis.dto.ServerDTO broker, org.apache.activemq.artemis.spi.core.security.ActiveMQSecurityManager security, org.apache.activemq.artemis.core.server.ActivateCallback activateCallback)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void createComponents()  
      java.util.Map<java.lang.String,​org.apache.activemq.artemis.core.server.ActiveMQComponent> getComponents()  
      org.apache.activemq.artemis.core.server.ActiveMQServer getServer()  
      boolean isStarted()  
      void start()  
      void stop()  
      void stop​(boolean isShutdown)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apache.activemq.artemis.core.server.ActiveMQComponent

        asyncStop
    • Constructor Detail

      • FileBroker

        public FileBroker​(org.apache.activemq.artemis.dto.ServerDTO broker,
                          org.apache.activemq.artemis.spi.core.security.ActiveMQSecurityManager security,
                          org.apache.activemq.artemis.core.server.ActivateCallback activateCallback)
    • Method Detail

      • start

        public void start()
                   throws java.lang.Exception
        Specified by:
        start in interface org.apache.activemq.artemis.core.server.ActiveMQComponent
        Throws:
        java.lang.Exception
      • stop

        public void stop()
                  throws java.lang.Exception
        Specified by:
        stop in interface org.apache.activemq.artemis.core.server.ActiveMQComponent
        Throws:
        java.lang.Exception
      • stop

        public void stop​(boolean isShutdown)
                  throws java.lang.Exception
        Specified by:
        stop in interface org.apache.activemq.artemis.core.server.ServiceComponent
        Throws:
        java.lang.Exception
      • isStarted

        public boolean isStarted()
        Specified by:
        isStarted in interface org.apache.activemq.artemis.core.server.ActiveMQComponent
      • getComponents

        public java.util.Map<java.lang.String,​org.apache.activemq.artemis.core.server.ActiveMQComponent> getComponents()
      • createComponents

        public void createComponents()
                              throws java.lang.Exception
        Specified by:
        createComponents in interface Broker
        Throws:
        java.lang.Exception
      • getServer

        public org.apache.activemq.artemis.core.server.ActiveMQServer getServer()
        Specified by:
        getServer in interface Broker