Class AMQPBridgeToAddressPolicyManager
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.AMQPBridgeToAddressPolicyManager
- All Implemented Interfaces:
ActiveMQServerAddressPlugin, ActiveMQServerBasePlugin
public class AMQPBridgeToAddressPolicyManager
extends AMQPBridgeToPolicyManager
implements ActiveMQServerAddressPlugin
AMQP Bridge policy manager that tracks local addresses that match the policy configurations
and creates senders to the remote peer for that address until such time as the address 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
ConstructorsConstructorDescriptionAMQPBridgeToAddressPolicyManager(AMQPBridgeManager bridge, AMQPBridgeMetrics metrics, AMQPBridgeAddressPolicy policy) -
Method Summary
Modifier and TypeMethodDescriptionvoidafterAddAddress(org.apache.activemq.artemis.core.server.impl.AddressInfo addressInfo, boolean reload) voidafterRemoveAddress(SimpleString address, org.apache.activemq.artemis.core.server.impl.AddressInfo addressInfo) Returns the policy that defines the bridged address 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 ActiveMQServerAddressPlugin
afterUpdateAddress, beforeAddAddress, beforeRemoveAddress, beforeUpdateAddressMethods inherited from interface ActiveMQServerBasePlugin
init, registered, setInit, unregistered
-
Constructor Details
-
AMQPBridgeToAddressPolicyManager
public AMQPBridgeToAddressPolicyManager(AMQPBridgeManager bridge, AMQPBridgeMetrics metrics, AMQPBridgeAddressPolicy policy)
-
-
Method Details
-
getPolicy
Returns the policy that defines the bridged address this policy manager monitors.- Specified by:
getPolicyin classAMQPBridgePolicyManager- Returns:
- the policy that defines the bridged address 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
-
afterAddAddress
public void afterAddAddress(org.apache.activemq.artemis.core.server.impl.AddressInfo addressInfo, boolean reload) - Specified by:
afterAddAddressin interfaceActiveMQServerAddressPlugin
-
afterRemoveAddress
public void afterRemoveAddress(SimpleString address, org.apache.activemq.artemis.core.server.impl.AddressInfo addressInfo) throws ActiveMQException - Specified by:
afterRemoveAddressin interfaceActiveMQServerAddressPlugin- Throws:
ActiveMQException
-