Class AMQPBridgeToQueuePolicyManager
java.lang.Object
org.apache.activemq.artemis.protocol.amqp.connect.bridge.AMQPBridgePolicyManager
org.apache.activemq.artemis.protocol.amqp.connect.bridge.AMQPBridgeToPolicyManager
org.apache.activemq.artemis.protocol.amqp.connect.bridge.AMQPBridgeToQueuePolicyManager
- All Implemented Interfaces:
ActiveMQServerBasePlugin, ActiveMQServerQueuePlugin
public class AMQPBridgeToQueuePolicyManager
extends AMQPBridgeToPolicyManager
implements ActiveMQServerQueuePlugin
AMQP Bridge policy manager that tracks local queues that match the policy configurations
and creates senders to the remote peer for that address until such time as the queue is
removed locally.
-
Nested Class Summary
Nested classes/interfaces inherited from class AMQPBridgePolicyManager
AMQPBridgePolicyManager.State -
Field Summary
Fields inherited from class AMQPBridgeToPolicyManager
configurationFields inherited from class AMQPBridgePolicyManager
bridge, connected, metrics, policyName, policyType, server, session, state -
Constructor Summary
ConstructorsConstructorDescriptionAMQPBridgeToQueuePolicyManager(AMQPBridgeManager bridge, AMQPBridgeMetrics metrics, AMQPBridgeQueuePolicy policy) -
Method Summary
Modifier and TypeMethodDescriptionvoidafterCreateQueue(org.apache.activemq.artemis.core.server.Queue queue) voidafterDestroyQueue(org.apache.activemq.artemis.core.server.Queue queue, SimpleString address, org.apache.activemq.artemis.core.security.SecurityAuth session, boolean checkConsumerCount, boolean removeConsumers, boolean autoDeleteAddress) protected final voidcheckQueueForMatch(org.apache.activemq.artemis.core.server.Queue queue) Returns the policy that defines the bridged queue this policy manager monitors.protected voidThe subclass implements this method and should remove all tracked AMQP bridge resource data and also close all links immediately.protected voidScans all server resources and push them through the normal checks that would be done on an add.Methods inherited from class AMQPBridgeToPolicyManager
handleConnectionInterrupted, handleConnectionRestored, handleManagerInitialized, handleManagerShutdown, handleManagerStarted, handleManagerStoppedMethods inherited from class AMQPBridgePolicyManager
connectionInterrupted, connectionRestored, failIfShutdown, getBridgeManager, getMetrics, getPolicyName, getPolicyType, initialize, isActive, isConnected, isStarted, shutdown, start, stopMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ActiveMQServerBasePlugin
init, registered, setInit, unregisteredMethods inherited from interface ActiveMQServerQueuePlugin
afterExpiryScan, beforeCreateQueue, beforeCreateQueue, beforeDestroyQueue, beforeDestroyQueue, beforeExpiryScan
-
Constructor Details
-
AMQPBridgeToQueuePolicyManager
public AMQPBridgeToQueuePolicyManager(AMQPBridgeManager bridge, AMQPBridgeMetrics metrics, AMQPBridgeQueuePolicy policy)
-
-
Method Details
-
getPolicy
Returns the policy that defines the bridged queue this policy manager monitors.- Specified by:
getPolicyin classAMQPBridgePolicyManager- Returns:
- the policy that defines the bridged queue this policy manager monitors
-
scanManagedResources
protected void scanManagedResources()Description copied from class:AMQPBridgeToPolicyManagerScans all server resources and push them through the normal checks that would be done on an add. This allows for checks on demand after a start or after a connection is restored.- Specified by:
scanManagedResourcesin classAMQPBridgeToPolicyManager
-
safeCleanupManagerResources
protected void safeCleanupManagerResources()Description copied from class:AMQPBridgeToPolicyManagerThe subclass implements this method and should remove all tracked AMQP bridge resource data and also close all links immediately.- Specified by:
safeCleanupManagerResourcesin classAMQPBridgeToPolicyManager
-
afterCreateQueue
public void afterCreateQueue(org.apache.activemq.artemis.core.server.Queue queue) throws ActiveMQException - Specified by:
afterCreateQueuein interfaceActiveMQServerQueuePlugin- Throws:
ActiveMQException
-
afterDestroyQueue
public void afterDestroyQueue(org.apache.activemq.artemis.core.server.Queue queue, SimpleString address, org.apache.activemq.artemis.core.security.SecurityAuth session, boolean checkConsumerCount, boolean removeConsumers, boolean autoDeleteAddress) throws ActiveMQException - Specified by:
afterDestroyQueuein interfaceActiveMQServerQueuePlugin- Throws:
ActiveMQException
-
checkQueueForMatch
protected final void checkQueueForMatch(org.apache.activemq.artemis.core.server.Queue queue)
-