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
FieldsModifier and TypeFieldDescriptionstatic final org.apache.qpid.proton.amqp.Symbolstatic final org.apache.qpid.proton.amqp.Symbolstatic final org.apache.qpid.proton.amqp.Symbolstatic final org.apache.qpid.proton.amqp.Symbolstatic final SimpleStringstatic final org.apache.qpid.proton.amqp.Symbolstatic final org.apache.qpid.proton.amqp.Symbolstatic final org.apache.qpid.proton.amqp.Symbolstatic final org.apache.qpid.proton.amqp.Symbolstatic final SimpleStringstatic final org.apache.qpid.proton.amqp.Symbolstatic final org.apache.qpid.proton.amqp.Symbolstatic final SimpleStringstatic final org.apache.qpid.proton.amqp.Symbolstatic final org.apache.qpid.proton.amqp.Symbolstatic final org.apache.qpid.proton.amqp.Symbolstatic final org.apache.qpid.proton.amqp.Symbolstatic final org.apache.qpid.proton.amqp.SymbolFields inherited from class BasicMirrorController
link, localMirrorId, remoteMirrorId -
Constructor Summary
ConstructorsConstructorDescriptionAMQPMirrorControllerSource(ReferenceIDSupplier referenceIdSupplier, org.apache.activemq.artemis.core.server.Queue snfQueue, org.apache.activemq.artemis.core.server.ActiveMQServer server, AMQPMirrorBrokerConnectionElement replicaConfig, AMQPBrokerConnection brokerConnection) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAddress(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) org.apache.activemq.artemis.core.server.QueuebooleanvoidpostAcknowledge(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 BasicMirrorController
getLink, getLocalMirrorId, getRemoteMirrorId, getRemoteMirrorID, setLinkMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.activemq.artemis.core.server.ActiveMQComponent
asyncStopMethods inherited from interface org.apache.activemq.artemis.core.server.mirror.MirrorController
getRemoteMirrorId, isRetryACK
-
Field Details
-
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
-
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
-
INTERNAL_BROKER_ID_EXTRA_PROPERTY
-
-
Constructor Details
-
AMQPMirrorControllerSource
public AMQPMirrorControllerSource(ReferenceIDSupplier referenceIdSupplier, org.apache.activemq.artemis.core.server.Queue snfQueue, org.apache.activemq.artemis.core.server.ActiveMQServer server, AMQPMirrorBrokerConnectionElement replicaConfig, AMQPBrokerConnection brokerConnection)
-
-
Method Details
-
start
-
stop
-
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
-
addAddress
-
deleteAddress
-
createQueue
- Specified by:
createQueuein interfaceorg.apache.activemq.artemis.core.server.mirror.MirrorController- Throws:
Exception
-
deleteQueue
- 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
-
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
-
routeMirrorCommand
-