Class AMQPMirrorControllerSource
- java.lang.Object
-
- org.apache.activemq.artemis.protocol.amqp.connect.mirror.BasicMirrorController<org.apache.qpid.proton.engine.Sender>
-
- org.apache.activemq.artemis.protocol.amqp.connect.mirror.AMQPMirrorControllerSource
-
- All Implemented Interfaces:
ActiveMQComponent,MirrorController
public class AMQPMirrorControllerSource extends BasicMirrorController<org.apache.qpid.proton.engine.Sender> implements MirrorController, ActiveMQComponent
-
-
Field Summary
Fields Modifier and Type Field Description static org.apache.qpid.proton.amqp.SymbolACK_REASONstatic org.apache.qpid.proton.amqp.SymbolADD_ADDRESSstatic org.apache.qpid.proton.amqp.SymbolADDRESSstatic org.apache.qpid.proton.amqp.SymbolBROKER_IDstatic org.apache.qpid.proton.amqp.SymbolCREATE_QUEUEstatic org.apache.qpid.proton.amqp.SymbolDELETE_ADDRESSstatic org.apache.qpid.proton.amqp.SymbolDELETE_QUEUEstatic org.apache.qpid.proton.amqp.SymbolEVENT_TYPEstatic SimpleStringINTERNAL_BROKER_ID_EXTRA_PROPERTYstatic org.apache.qpid.proton.amqp.SymbolINTERNAL_DESTINATIONstatic org.apache.qpid.proton.amqp.SymbolINTERNAL_IDstatic SimpleStringINTERNAL_ID_EXTRA_PROPERTYstatic org.apache.qpid.proton.amqp.SymbolMIRROR_CAPABILITYstatic org.apache.qpid.proton.amqp.SymbolPOST_ACKstatic org.apache.qpid.proton.amqp.SymbolQPID_DISPATCH_WAYPOINT_CAPABILITYstatic org.apache.qpid.proton.amqp.SymbolQUEUE-
Fields inherited from class org.apache.activemq.artemis.protocol.amqp.connect.mirror.BasicMirrorController
link, localMirrorId, remoteMirrorId
-
-
Constructor Summary
Constructors Constructor Description AMQPMirrorControllerSource(ProtonProtocolManager protonProtocolManager, Queue snfQueue, ActiveMQServer server, AMQPMirrorBrokerConnectionElement replicaConfig, AMQPBrokerConnection brokerConnection)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAddress(AddressInfo addressInfo)voidcreateQueue(QueueConfiguration queueConfiguration)voiddeleteAddress(AddressInfo addressInfo)voiddeleteQueue(SimpleString address, SimpleString queue)AMQPBrokerConnectiongetBrokerConnection()QueuegetSnfQueue()booleanisStarted()voidpostAcknowledge(MessageReference ref, AckReason reason)static voidroute(ActiveMQServer server, Message message)voidsendMessage(Message message, RoutingContext context, List<MessageReference> refs)voidstart()voidstop()static voidvalidateProtocolData(ReferenceNodeStore referenceIDSupplier, MessageReference ref, SimpleString snfAddress)-
Methods inherited from class org.apache.activemq.artemis.protocol.amqp.connect.mirror.BasicMirrorController
getLink, getLocalMirrorId, getRemoteMirrorId, getRemoteMirrorID, setLink
-
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 SimpleString INTERNAL_ID_EXTRA_PROPERTY
-
INTERNAL_BROKER_ID_EXTRA_PROPERTY
public static final SimpleString INTERNAL_BROKER_ID_EXTRA_PROPERTY
-
-
Constructor Detail
-
AMQPMirrorControllerSource
public AMQPMirrorControllerSource(ProtonProtocolManager protonProtocolManager, Queue snfQueue, ActiveMQServer server, AMQPMirrorBrokerConnectionElement replicaConfig, AMQPBrokerConnection brokerConnection)
-
-
Method Detail
-
start
public void start() throws Exception- Specified by:
startin interfaceActiveMQComponent- Throws:
Exception
-
stop
public void stop() throws Exception- Specified by:
stopin interfaceActiveMQComponent- Throws:
Exception
-
isStarted
public boolean isStarted()
- Specified by:
isStartedin interfaceActiveMQComponent
-
getSnfQueue
public Queue getSnfQueue()
-
getBrokerConnection
public AMQPBrokerConnection getBrokerConnection()
-
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 address, SimpleString queue) throws Exception
- Specified by:
deleteQueuein interfaceMirrorController- Throws:
Exception
-
sendMessage
public void sendMessage(Message message, RoutingContext context, List<MessageReference> refs)
- Specified by:
sendMessagein interfaceMirrorController
-
validateProtocolData
public static void validateProtocolData(ReferenceNodeStore referenceIDSupplier, MessageReference ref, SimpleString snfAddress)
-
postAcknowledge
public void postAcknowledge(MessageReference ref, AckReason reason) throws Exception
- Specified by:
postAcknowledgein interfaceMirrorController- Throws:
Exception
-
route
public static void route(ActiveMQServer server, Message message) throws Exception
- Throws:
Exception
-
-