Class AMQPMirrorControllerSource

  • All Implemented Interfaces:
    org.apache.activemq.artemis.core.server.ActiveMQComponent, org.apache.activemq.artemis.core.server.mirror.MirrorController

    public class AMQPMirrorControllerSource
    extends BasicMirrorController<org.apache.qpid.proton.engine.Sender>
    implements org.apache.activemq.artemis.core.server.mirror.MirrorController, org.apache.activemq.artemis.core.server.ActiveMQComponent
    • Constructor Summary

      Constructors 
      Constructor Description
      AMQPMirrorControllerSource​(ProtonProtocolManager protonProtocolManager, org.apache.activemq.artemis.core.server.Queue snfQueue, org.apache.activemq.artemis.core.server.ActiveMQServer server, org.apache.activemq.artemis.core.config.amqpBrokerConnectivity.AMQPMirrorBrokerConnectionElement replicaConfig, AMQPBrokerConnection brokerConnection)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addAddress​(org.apache.activemq.artemis.core.server.impl.AddressInfo addressInfo)  
      void createQueue​(org.apache.activemq.artemis.api.core.QueueConfiguration queueConfiguration)  
      void deleteAddress​(org.apache.activemq.artemis.core.server.impl.AddressInfo addressInfo)  
      void deleteQueue​(org.apache.activemq.artemis.api.core.SimpleString address, org.apache.activemq.artemis.api.core.SimpleString queue)  
      AMQPBrokerConnection getBrokerConnection()  
      org.apache.activemq.artemis.core.server.Queue getSnfQueue()  
      boolean isStarted()  
      void postAcknowledge​(org.apache.activemq.artemis.core.server.MessageReference ref, org.apache.activemq.artemis.core.server.impl.AckReason reason)  
      static void route​(org.apache.activemq.artemis.core.server.ActiveMQServer server, org.apache.activemq.artemis.api.core.Message message)  
      void sendMessage​(org.apache.activemq.artemis.api.core.Message message, org.apache.activemq.artemis.core.server.RoutingContext context, java.util.List<org.apache.activemq.artemis.core.server.MessageReference> refs)  
      void start()  
      void stop()  
      static void validateProtocolData​(ReferenceNodeStore referenceIDSupplier, org.apache.activemq.artemis.core.server.MessageReference ref, org.apache.activemq.artemis.api.core.SimpleString snfAddress)  
      • 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
      • Methods inherited from interface org.apache.activemq.artemis.core.server.mirror.MirrorController

        getRemoteMirrorId
    • Field Detail

      • EVENT_TYPE

        public static final org.apache.qpid.proton.amqp.Symbol EVENT_TYPE
      • ACK_REASON

        public static final org.apache.qpid.proton.amqp.Symbol ACK_REASON
      • ADDRESS

        public static final org.apache.qpid.proton.amqp.Symbol ADDRESS
      • QUEUE

        public static final org.apache.qpid.proton.amqp.Symbol QUEUE
      • BROKER_ID

        public static final org.apache.qpid.proton.amqp.Symbol BROKER_ID
      • ADD_ADDRESS

        public static final org.apache.qpid.proton.amqp.Symbol ADD_ADDRESS
      • DELETE_ADDRESS

        public static final org.apache.qpid.proton.amqp.Symbol DELETE_ADDRESS
      • CREATE_QUEUE

        public static final org.apache.qpid.proton.amqp.Symbol CREATE_QUEUE
      • DELETE_QUEUE

        public static final org.apache.qpid.proton.amqp.Symbol DELETE_QUEUE
      • POST_ACK

        public static final org.apache.qpid.proton.amqp.Symbol POST_ACK
      • INTERNAL_ID

        public static final org.apache.qpid.proton.amqp.Symbol INTERNAL_ID
      • INTERNAL_DESTINATION

        public static final org.apache.qpid.proton.amqp.Symbol INTERNAL_DESTINATION
      • MIRROR_CAPABILITY

        public static final org.apache.qpid.proton.amqp.Symbol MIRROR_CAPABILITY
      • QPID_DISPATCH_WAYPOINT_CAPABILITY

        public static final org.apache.qpid.proton.amqp.Symbol QPID_DISPATCH_WAYPOINT_CAPABILITY
      • INTERNAL_ID_EXTRA_PROPERTY

        public static final org.apache.activemq.artemis.api.core.SimpleString INTERNAL_ID_EXTRA_PROPERTY
      • INTERNAL_BROKER_ID_EXTRA_PROPERTY

        public static final org.apache.activemq.artemis.api.core.SimpleString INTERNAL_BROKER_ID_EXTRA_PROPERTY
    • Constructor Detail

      • AMQPMirrorControllerSource

        public AMQPMirrorControllerSource​(ProtonProtocolManager protonProtocolManager,
                                          org.apache.activemq.artemis.core.server.Queue snfQueue,
                                          org.apache.activemq.artemis.core.server.ActiveMQServer server,
                                          org.apache.activemq.artemis.core.config.amqpBrokerConnectivity.AMQPMirrorBrokerConnectionElement replicaConfig,
                                          AMQPBrokerConnection brokerConnection)
    • 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
      • isStarted

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

        public org.apache.activemq.artemis.core.server.Queue getSnfQueue()
      • addAddress

        public void addAddress​(org.apache.activemq.artemis.core.server.impl.AddressInfo addressInfo)
                        throws java.lang.Exception
        Specified by:
        addAddress in interface org.apache.activemq.artemis.core.server.mirror.MirrorController
        Throws:
        java.lang.Exception
      • deleteAddress

        public void deleteAddress​(org.apache.activemq.artemis.core.server.impl.AddressInfo addressInfo)
                           throws java.lang.Exception
        Specified by:
        deleteAddress in interface org.apache.activemq.artemis.core.server.mirror.MirrorController
        Throws:
        java.lang.Exception
      • createQueue

        public void createQueue​(org.apache.activemq.artemis.api.core.QueueConfiguration queueConfiguration)
                         throws java.lang.Exception
        Specified by:
        createQueue in interface org.apache.activemq.artemis.core.server.mirror.MirrorController
        Throws:
        java.lang.Exception
      • deleteQueue

        public void deleteQueue​(org.apache.activemq.artemis.api.core.SimpleString address,
                                org.apache.activemq.artemis.api.core.SimpleString queue)
                         throws java.lang.Exception
        Specified by:
        deleteQueue in interface org.apache.activemq.artemis.core.server.mirror.MirrorController
        Throws:
        java.lang.Exception
      • sendMessage

        public void sendMessage​(org.apache.activemq.artemis.api.core.Message message,
                                org.apache.activemq.artemis.core.server.RoutingContext context,
                                java.util.List<org.apache.activemq.artemis.core.server.MessageReference> refs)
        Specified by:
        sendMessage in interface org.apache.activemq.artemis.core.server.mirror.MirrorController
      • validateProtocolData

        public static void validateProtocolData​(ReferenceNodeStore referenceIDSupplier,
                                                org.apache.activemq.artemis.core.server.MessageReference ref,
                                                org.apache.activemq.artemis.api.core.SimpleString snfAddress)
      • postAcknowledge

        public void postAcknowledge​(org.apache.activemq.artemis.core.server.MessageReference ref,
                                    org.apache.activemq.artemis.core.server.impl.AckReason reason)
                             throws java.lang.Exception
        Specified by:
        postAcknowledge in interface org.apache.activemq.artemis.core.server.mirror.MirrorController
        Throws:
        java.lang.Exception
      • route

        public static void route​(org.apache.activemq.artemis.core.server.ActiveMQServer server,
                                 org.apache.activemq.artemis.api.core.Message message)
                          throws java.lang.Exception
        Throws:
        java.lang.Exception