Class ClusterConnectionBridge
- java.lang.Object
-
- org.apache.activemq.artemis.core.server.cluster.impl.BridgeImpl
-
- org.apache.activemq.artemis.core.server.cluster.impl.ClusterConnectionBridge
-
- All Implemented Interfaces:
SendAcknowledgementHandler,SessionFailureListener,ClientProducerFlowCallback,PriorityAware,FailureListener,ActiveMQComponent,Bridge,Consumer,ReadyListener
public class ClusterConnectionBridge extends BridgeImpl
A bridge with extra functionality only available when the server is clustered.Such as such adding extra properties and setting up notifications between the nodes.
-
-
Field Summary
-
Fields inherited from class org.apache.activemq.artemis.core.server.cluster.impl.BridgeImpl
disconnectedAndDown, executor, futureScheduledReconnection, queue, scheduledExecutor, serverLocator, session, sessionConsumer, targetNode, targetNodeID
-
-
Constructor Summary
Constructors Constructor Description ClusterConnectionBridge(ClusterConnection clusterConnection, ClusterManager clusterManager, ServerLocatorInternal targetLocator, ServerLocatorInternal discoveryLocator, int initialConnectAttempts, int reconnectAttempts, long retryInterval, double retryMultiplier, long maxRetryInterval, UUID nodeUUID, long targetNodeEventUID, String targetNodeID, SimpleString name, Queue queue, Executor executor, Filter filterString, SimpleString forwardingAddress, ScheduledExecutorService scheduledExecutor, TransformerConfiguration transformer, boolean useDuplicateDetection, String user, String password, ActiveMQServer server, SimpleString managementAddress, SimpleString managementNotificationAddress, MessageFlowRecord flowRecord, TransportConfiguration connector, String storeAndForwardPrefix, StorageManager storageManager)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidafterConnect()protected MessagebeforeForward(Message message, SimpleString forwardingAddress)static StringbuildSelectorFromArray(String[] list)static StringcreateSelectorFromAddress(String address)Takes in a string of an address filter or comma separated list and generates an appropriate JMS selector for filtering queues.protected ClientSessionFactoryInternalcreateSessionFactory()protected voidfail(boolean permanently, boolean scaleDown)protected voidnodeUP(TopologyMember member, boolean last)protected voidtryScheduleRetryReconnect(ActiveMQExceptionType type)-
Methods inherited from class org.apache.activemq.artemis.core.server.cluster.impl.BridgeImpl
activate, beforeForwardingNoCopy, beforeReconnect, connect, connectionFailed, connectionFailed, debug, disconnect, flushExecutor, getConfiguration, getCSF, getDeliveringMessages, getDuplicateBytes, getExecutor, getFilter, getForwardingAddress, getForwardingConnection, getMetrics, getName, getQueue, getSessionFactory, getTargetNodeFromTopology, getTransformer, handle, isBlockedOnFlowControl, isConnected, isStarted, onCreditsFail, onCreditsFlow, pause, proceedDeliver, readyForWriting, reconnectOnOriginalNode, resume, scaleDown, scheduleRetryConnect, scheduleRetryConnectFixedTimeout, sendAcknowledged, sequentialID, setNotificationService, setSessionFactory, start, stop, toManagementString, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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.Consumer
errorProcessing, getBinding, getPriority, promptDelivery, supportsDirectDelivery
-
Methods inherited from interface org.apache.activemq.artemis.api.core.client.SendAcknowledgementHandler
sendFailed
-
-
-
-
Constructor Detail
-
ClusterConnectionBridge
public ClusterConnectionBridge(ClusterConnection clusterConnection, ClusterManager clusterManager, ServerLocatorInternal targetLocator, ServerLocatorInternal discoveryLocator, int initialConnectAttempts, int reconnectAttempts, long retryInterval, double retryMultiplier, long maxRetryInterval, UUID nodeUUID, long targetNodeEventUID, String targetNodeID, SimpleString name, Queue queue, Executor executor, Filter filterString, SimpleString forwardingAddress, ScheduledExecutorService scheduledExecutor, TransformerConfiguration transformer, boolean useDuplicateDetection, String user, String password, ActiveMQServer server, SimpleString managementAddress, SimpleString managementNotificationAddress, MessageFlowRecord flowRecord, TransportConfiguration connector, String storeAndForwardPrefix, StorageManager storageManager) throws ActiveMQException
- Throws:
ActiveMQException
-
-
Method Detail
-
createSessionFactory
protected ClientSessionFactoryInternal createSessionFactory() throws Exception
- Overrides:
createSessionFactoryin classBridgeImpl- Throws:
Exception
-
beforeForward
protected Message beforeForward(Message message, SimpleString forwardingAddress)
- Overrides:
beforeForwardin classBridgeImpl
-
createSelectorFromAddress
public static String createSelectorFromAddress(String address)
Takes in a string of an address filter or comma separated list and generates an appropriate JMS selector for filtering queues.- Parameters:
address-
-
nodeUP
protected void nodeUP(TopologyMember member, boolean last)
- Overrides:
nodeUPin classBridgeImpl
-
afterConnect
protected void afterConnect() throws Exception- Overrides:
afterConnectin classBridgeImpl- Throws:
Exception
-
tryScheduleRetryReconnect
protected void tryScheduleRetryReconnect(ActiveMQExceptionType type)
- Overrides:
tryScheduleRetryReconnectin classBridgeImpl
-
fail
protected void fail(boolean permanently, boolean scaleDown)- Overrides:
failin classBridgeImpl
-
-