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 SimpleStringBROKER_ID_SIMPLE_STRINGstatic 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.SymbolQUEUEstatic org.apache.qpid.proton.amqp.SymbolTARGET_QUEUES-
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, 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(QueueConfiguration queueConfiguration)voiddeleteAddress(org.apache.activemq.artemis.core.server.impl.AddressInfo addressInfo)voiddeleteQueue(SimpleString address, 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)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)static voidrouteMirrorCommand(org.apache.activemq.artemis.core.server.ActiveMQServer server, Message message)static voidrouteMirrorCommand(org.apache.activemq.artemis.core.server.ActiveMQServer server, Message message, org.apache.activemq.artemis.core.transaction.Transaction tx)voidsendMessage(org.apache.activemq.artemis.core.transaction.Transaction tx, Message message, org.apache.activemq.artemis.core.server.RoutingContext context)voidstart()voidstop()static voidvalidateProtocolData(ReferenceIDSupplier referenceIDSupplier, org.apache.activemq.artemis.core.server.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
-
-
-
-
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
-
BROKER_ID_SIMPLE_STRING
public static final SimpleString BROKER_ID_SIMPLE_STRING
-
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
-
TARGET_QUEUES
public static final org.apache.qpid.proton.amqp.Symbol TARGET_QUEUES
-
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, org.apache.activemq.artemis.core.server.Queue snfQueue, org.apache.activemq.artemis.core.server.ActiveMQServer server, AMQPMirrorBrokerConnectionElement replicaConfig, AMQPBrokerConnection brokerConnection)
-
-
Method Detail
-
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
-
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 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 address, SimpleString queue) 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
-
validateProtocolData
public static void validateProtocolData(ReferenceIDSupplier referenceIDSupplier, org.apache.activemq.artemis.core.server.MessageReference ref, SimpleString snfAddress)
-
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
-
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
-
routeMirrorCommand
public static void routeMirrorCommand(org.apache.activemq.artemis.core.server.ActiveMQServer server, Message message) throws Exception- Throws:
Exception
-
-