Class AMQPMirrorControllerAggregation
- java.lang.Object
-
- org.apache.activemq.artemis.protocol.amqp.connect.mirror.AMQPMirrorControllerAggregation
-
- All Implemented Interfaces:
ActiveMQComponent,MirrorController
public class AMQPMirrorControllerAggregation extends Object implements MirrorController, 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(AddressInfo addressInfo)voidaddPartition(AMQPMirrorControllerSource partition)voidcreateQueue(QueueConfiguration queueConfiguration)voiddeleteAddress(AddressInfo addressInfo)voiddeleteQueue(SimpleString addressName, SimpleString queueName)List<AMQPMirrorControllerSource>getPartitions()StringgetRemoteMirrorId()booleanisStarted()voidpostAcknowledge(MessageReference ref, AckReason reason)voidremoveParition(AMQPMirrorControllerSource partition)voidsendMessage(Message message, RoutingContext context, List<MessageReference> refs)voidstart()voidstop()-
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
-
-
-
-
Method Detail
-
addPartition
public void addPartition(AMQPMirrorControllerSource partition)
-
removeParition
public void removeParition(AMQPMirrorControllerSource partition)
-
start
public void start() throws Exception- Specified by:
startin interfaceActiveMQComponent- Throws:
Exception
-
stop
public void stop() throws Exception- Specified by:
stopin interfaceActiveMQComponent- Throws:
Exception
-
getRemoteMirrorId
public String getRemoteMirrorId()
- Specified by:
getRemoteMirrorIdin interfaceMirrorController
-
isStarted
public boolean isStarted()
- Specified by:
isStartedin interfaceActiveMQComponent
-
getPartitions
public List<AMQPMirrorControllerSource> getPartitions()
-
addAddress
public void addAddress(AddressInfo addressInfo) throws Exception
- Specified by:
addAddressin interfaceMirrorController- Throws:
Exception
-
deleteAddress
public void deleteAddress(AddressInfo addressInfo) throws Exception
- Specified by:
deleteAddressin interfaceMirrorController- Throws:
Exception
-
createQueue
public void createQueue(QueueConfiguration queueConfiguration) throws Exception
- Specified by:
createQueuein interfaceMirrorController- Throws:
Exception
-
deleteQueue
public void deleteQueue(SimpleString addressName, SimpleString queueName) throws Exception
- Specified by:
deleteQueuein interfaceMirrorController- Throws:
Exception
-
sendMessage
public void sendMessage(Message message, RoutingContext context, List<MessageReference> refs)
- Specified by:
sendMessagein interfaceMirrorController
-
postAcknowledge
public void postAcknowledge(MessageReference ref, AckReason reason) throws Exception
- Specified by:
postAcknowledgein interfaceMirrorController- Throws:
Exception
-
-