Class AMQPMirrorControllerAggregation
- java.lang.Object
-
- org.apache.activemq.artemis.protocol.amqp.connect.mirror.AMQPMirrorControllerAggregation
-
- All Implemented Interfaces:
org.apache.activemq.artemis.core.server.ActiveMQComponent,org.apache.activemq.artemis.core.server.mirror.MirrorController
public class AMQPMirrorControllerAggregation extends 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.
-
-
Constructor Summary
Constructors Constructor Description AMQPMirrorControllerAggregation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAddress(org.apache.activemq.artemis.core.server.impl.AddressInfo addressInfo)voidaddPartition(AMQPMirrorControllerSource partition)voidcreateQueue(QueueConfiguration queueConfiguration)voiddeleteAddress(org.apache.activemq.artemis.core.server.impl.AddressInfo addressInfo)voiddeleteQueue(SimpleString addressName, SimpleString queueName)List<AMQPMirrorControllerSource>getPartitions()StringgetRemoteMirrorId()booleanisStarted()voidpostAcknowledge(org.apache.activemq.artemis.core.server.MessageReference ref, org.apache.activemq.artemis.core.server.impl.AckReason reason)voidpreAcknowledge(org.apache.activemq.artemis.core.transaction.Transaction tx, org.apache.activemq.artemis.core.server.MessageReference ref, org.apache.activemq.artemis.core.server.impl.AckReason reason)voidremoveParition(AMQPMirrorControllerSource partition)voidsendMessage(org.apache.activemq.artemis.core.transaction.Transaction tx, Message message, org.apache.activemq.artemis.core.server.RoutingContext context)voidstart()voidstop()
-
-
-
Method Detail
-
addPartition
public void addPartition(AMQPMirrorControllerSource partition)
-
removeParition
public void removeParition(AMQPMirrorControllerSource partition)
-
start
public void start() throws Exception- Specified by:
startin interfaceorg.apache.activemq.artemis.core.server.ActiveMQComponent- Throws:
Exception
-
stop
public void stop() throws Exception- Specified by:
stopin interfaceorg.apache.activemq.artemis.core.server.ActiveMQComponent- Throws:
Exception
-
getRemoteMirrorId
public String getRemoteMirrorId()
- Specified by:
getRemoteMirrorIdin interfaceorg.apache.activemq.artemis.core.server.mirror.MirrorController
-
isStarted
public boolean isStarted()
- Specified by:
isStartedin interfaceorg.apache.activemq.artemis.core.server.ActiveMQComponent
-
getPartitions
public List<AMQPMirrorControllerSource> getPartitions()
-
preAcknowledge
public void preAcknowledge(org.apache.activemq.artemis.core.transaction.Transaction tx, org.apache.activemq.artemis.core.server.MessageReference ref, org.apache.activemq.artemis.core.server.impl.AckReason reason) throws Exception- Specified by:
preAcknowledgein interfaceorg.apache.activemq.artemis.core.server.mirror.MirrorController- Throws:
Exception
-
addAddress
public void addAddress(org.apache.activemq.artemis.core.server.impl.AddressInfo addressInfo) throws Exception- Specified by:
addAddressin interfaceorg.apache.activemq.artemis.core.server.mirror.MirrorController- Throws:
Exception
-
deleteAddress
public void deleteAddress(org.apache.activemq.artemis.core.server.impl.AddressInfo addressInfo) throws Exception- Specified by:
deleteAddressin interfaceorg.apache.activemq.artemis.core.server.mirror.MirrorController- Throws:
Exception
-
createQueue
public void createQueue(QueueConfiguration queueConfiguration) throws Exception
- Specified by:
createQueuein interfaceorg.apache.activemq.artemis.core.server.mirror.MirrorController- Throws:
Exception
-
deleteQueue
public void deleteQueue(SimpleString addressName, SimpleString queueName) throws Exception
- Specified by:
deleteQueuein interfaceorg.apache.activemq.artemis.core.server.mirror.MirrorController- Throws:
Exception
-
sendMessage
public void sendMessage(org.apache.activemq.artemis.core.transaction.Transaction tx, Message message, org.apache.activemq.artemis.core.server.RoutingContext context)- Specified by:
sendMessagein interfaceorg.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 Exception- Specified by:
postAcknowledgein interfaceorg.apache.activemq.artemis.core.server.mirror.MirrorController- Throws:
Exception
-
-