Class AMQPMirrorControllerAggregation

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

    public class AMQPMirrorControllerAggregation
    extends java.lang.Object
    implements org.apache.activemq.artemis.core.server.mirror.MirrorController, org.apache.activemq.artemis.core.server.ActiveMQComponent
    this will be used when there are multiple replicas in use.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addAddress​(org.apache.activemq.artemis.core.server.impl.AddressInfo addressInfo)  
      void addPartition​(AMQPMirrorControllerSource partition)  
      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 addressName, org.apache.activemq.artemis.api.core.SimpleString queueName)  
      java.util.List<AMQPMirrorControllerSource> getPartitions()  
      java.lang.String getRemoteMirrorId()  
      boolean isStarted()  
      void postAcknowledge​(org.apache.activemq.artemis.core.server.MessageReference ref, org.apache.activemq.artemis.core.server.impl.AckReason reason)  
      void removeParition​(AMQPMirrorControllerSource partition)  
      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()  
      • 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

      • AMQPMirrorControllerAggregation

        public AMQPMirrorControllerAggregation()
    • 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
      • getRemoteMirrorId

        public java.lang.String getRemoteMirrorId()
        Specified by:
        getRemoteMirrorId in interface org.apache.activemq.artemis.core.server.mirror.MirrorController
      • isStarted

        public boolean isStarted()
        Specified by:
        isStarted in interface org.apache.activemq.artemis.core.server.ActiveMQComponent
      • 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 addressName,
                                org.apache.activemq.artemis.api.core.SimpleString queueName)
                         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
      • 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