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:
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
-
-
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 org.apache.activemq.artemis.api.core.SimpleStringINTERNAL_BROKER_ID_EXTRA_PROPERTYstatic org.apache.qpid.proton.amqp.SymbolINTERNAL_DESTINATIONstatic org.apache.qpid.proton.amqp.SymbolINTERNAL_IDstatic org.apache.activemq.artemis.api.core.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, 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 voidaddAddress(org.apache.activemq.artemis.core.server.impl.AddressInfo addressInfo)voidcreateQueue(org.apache.activemq.artemis.api.core.QueueConfiguration queueConfiguration)voiddeleteAddress(org.apache.activemq.artemis.core.server.impl.AddressInfo addressInfo)voiddeleteQueue(org.apache.activemq.artemis.api.core.SimpleString address, org.apache.activemq.artemis.api.core.SimpleString queue)AMQPBrokerConnectiongetBrokerConnection()org.apache.activemq.artemis.core.server.QueuegetSnfQueue()booleanisStarted()voidpostAcknowledge(org.apache.activemq.artemis.core.server.MessageReference ref, org.apache.activemq.artemis.core.server.impl.AckReason reason)static voidroute(org.apache.activemq.artemis.core.server.ActiveMQServer server, org.apache.activemq.artemis.api.core.Message message)voidsendMessage(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)voidstart()voidstop()static voidvalidateProtocolData(ReferenceNodeStore referenceIDSupplier, org.apache.activemq.artemis.core.server.MessageReference ref, org.apache.activemq.artemis.api.core.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
-
-
-
-
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:
startin interfaceorg.apache.activemq.artemis.core.server.ActiveMQComponent- Throws:
java.lang.Exception
-
stop
public void stop() throws java.lang.Exception- Specified by:
stopin interfaceorg.apache.activemq.artemis.core.server.ActiveMQComponent- Throws:
java.lang.Exception
-
isStarted
public boolean isStarted()
- Specified by:
isStartedin interfaceorg.apache.activemq.artemis.core.server.ActiveMQComponent
-
getSnfQueue
public org.apache.activemq.artemis.core.server.Queue getSnfQueue()
-
getBrokerConnection
public AMQPBrokerConnection getBrokerConnection()
-
addAddress
public void addAddress(org.apache.activemq.artemis.core.server.impl.AddressInfo addressInfo) throws java.lang.Exception- Specified by:
addAddressin interfaceorg.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:
deleteAddressin interfaceorg.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:
createQueuein interfaceorg.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:
deleteQueuein interfaceorg.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:
sendMessagein interfaceorg.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:
postAcknowledgein interfaceorg.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
-
-