public class AMQPMirrorControllerSource extends BasicMirrorController<org.apache.qpid.proton.engine.Sender> implements org.apache.activemq.artemis.core.server.mirror.MirrorController, ActiveMQComponent
| Modifier and Type | Field and Description |
|---|---|
static org.apache.qpid.proton.amqp.Symbol |
ADD_ADDRESS |
static org.apache.qpid.proton.amqp.Symbol |
ADDRESS |
static org.apache.qpid.proton.amqp.Symbol |
BROKER_ID |
static org.apache.qpid.proton.amqp.Symbol |
CREATE_QUEUE |
static org.apache.qpid.proton.amqp.Symbol |
DELETE_ADDRESS |
static org.apache.qpid.proton.amqp.Symbol |
DELETE_QUEUE |
static org.apache.qpid.proton.amqp.Symbol |
EVENT_TYPE |
static SimpleString |
INTERNAL_BROKER_ID_EXTRA_PROPERTY |
static org.apache.qpid.proton.amqp.Symbol |
INTERNAL_DESTINATION |
static org.apache.qpid.proton.amqp.Symbol |
INTERNAL_ID |
static SimpleString |
INTERNAL_ID_EXTRA_PROPERTY |
static org.apache.qpid.proton.amqp.Symbol |
MIRROR_CAPABILITY |
static org.apache.qpid.proton.amqp.Symbol |
POST_ACK |
static org.apache.qpid.proton.amqp.Symbol |
QPID_DISPATCH_WAYPOINT_CAPABILITY |
static org.apache.qpid.proton.amqp.Symbol |
QUEUE |
link, localMirrorId, remoteMirrorId| Constructor and Description |
|---|
AMQPMirrorControllerSource(ProtonProtocolManager protonProtocolManager,
Queue snfQueue,
ActiveMQServer server,
org.apache.activemq.artemis.core.config.amqpBrokerConnectivity.AMQPMirrorBrokerConnectionElement replicaConfig,
AMQPBrokerConnection brokerConnection) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAddress(org.apache.activemq.artemis.core.server.impl.AddressInfo addressInfo) |
void |
createQueue(QueueConfiguration queueConfiguration) |
void |
deleteAddress(org.apache.activemq.artemis.core.server.impl.AddressInfo addressInfo) |
void |
deleteQueue(SimpleString address,
SimpleString queue) |
AMQPBrokerConnection |
getBrokerConnection() |
Queue |
getSnfQueue() |
boolean |
isStarted() |
void |
postAcknowledge(MessageReference ref,
org.apache.activemq.artemis.core.server.impl.AckReason reason) |
static void |
route(ActiveMQServer server,
Message message) |
void |
sendMessage(Message message,
RoutingContext context,
List<MessageReference> refs) |
void |
start() |
void |
stop() |
static void |
validateProtocolData(ReferenceNodeStore referenceIDSupplier,
MessageReference ref,
SimpleString snfAddress) |
getLink, getLocalMirrorId, getRemoteMirrorId, getRemoteMirrorID, setLinkclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRemoteMirrorIdasyncStoppublic static final org.apache.qpid.proton.amqp.Symbol EVENT_TYPE
public static final org.apache.qpid.proton.amqp.Symbol ADDRESS
public static final org.apache.qpid.proton.amqp.Symbol QUEUE
public static final org.apache.qpid.proton.amqp.Symbol BROKER_ID
public static final org.apache.qpid.proton.amqp.Symbol ADD_ADDRESS
public static final org.apache.qpid.proton.amqp.Symbol DELETE_ADDRESS
public static final org.apache.qpid.proton.amqp.Symbol CREATE_QUEUE
public static final org.apache.qpid.proton.amqp.Symbol DELETE_QUEUE
public static final org.apache.qpid.proton.amqp.Symbol POST_ACK
public static final org.apache.qpid.proton.amqp.Symbol INTERNAL_ID
public static final org.apache.qpid.proton.amqp.Symbol INTERNAL_DESTINATION
public static final org.apache.qpid.proton.amqp.Symbol MIRROR_CAPABILITY
public static final org.apache.qpid.proton.amqp.Symbol QPID_DISPATCH_WAYPOINT_CAPABILITY
public static final SimpleString INTERNAL_ID_EXTRA_PROPERTY
public static final SimpleString INTERNAL_BROKER_ID_EXTRA_PROPERTY
public AMQPMirrorControllerSource(ProtonProtocolManager protonProtocolManager, Queue snfQueue, ActiveMQServer server, org.apache.activemq.artemis.core.config.amqpBrokerConnectivity.AMQPMirrorBrokerConnectionElement replicaConfig, AMQPBrokerConnection brokerConnection)
public void start()
throws Exception
start in interface ActiveMQComponentExceptionpublic void stop()
throws Exception
stop in interface ActiveMQComponentExceptionpublic boolean isStarted()
isStarted in interface ActiveMQComponentpublic Queue getSnfQueue()
public AMQPBrokerConnection getBrokerConnection()
public void addAddress(org.apache.activemq.artemis.core.server.impl.AddressInfo addressInfo) throws Exception
addAddress in interface org.apache.activemq.artemis.core.server.mirror.MirrorControllerExceptionpublic void deleteAddress(org.apache.activemq.artemis.core.server.impl.AddressInfo addressInfo) throws Exception
deleteAddress in interface org.apache.activemq.artemis.core.server.mirror.MirrorControllerExceptionpublic void createQueue(QueueConfiguration queueConfiguration) throws Exception
createQueue in interface org.apache.activemq.artemis.core.server.mirror.MirrorControllerExceptionpublic void deleteQueue(SimpleString address, SimpleString queue) throws Exception
deleteQueue in interface org.apache.activemq.artemis.core.server.mirror.MirrorControllerExceptionpublic void sendMessage(Message message, RoutingContext context, List<MessageReference> refs)
sendMessage in interface org.apache.activemq.artemis.core.server.mirror.MirrorControllerpublic static void validateProtocolData(ReferenceNodeStore referenceIDSupplier, MessageReference ref, SimpleString snfAddress)
public void postAcknowledge(MessageReference ref, org.apache.activemq.artemis.core.server.impl.AckReason reason) throws Exception
postAcknowledge in interface org.apache.activemq.artemis.core.server.mirror.MirrorControllerExceptionpublic static void route(ActiveMQServer server, Message message) throws Exception
ExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.