Class AMQPBridgeManagementSupport
java.lang.Object
org.apache.activemq.artemis.protocol.amqp.connect.bridge.AMQPBridgeManagementSupport
Support methods for working with the AMQP bridge management types
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe template used to create the object name suffix that is appending to the broker connection object name when adding and removing AMQP bridge address receiver control elements.static final StringThe template used to create the object name suffix that is appending to the broker connection object name when adding and removing AMQP bridge address sender control elements.static final StringTemplate used to denote bridge manager instances in the server management registry.static final StringThe template used to create the object name suffix that is appending to the broker connection object name when adding and removing AMQP bridge related control elements.static final StringThe template used to create the object name suffix that is appending to the broker connection object name when adding and removing AMQP bridge policy control elements.static final StringTemplate used to denote bridge policy managers created on the source in the server management registry.static final StringThe template used to create the object name suffix that is appending to the broker connection object name when adding and removing AMQP bridge queue receiver control elements.static final StringThe template used to create the object name suffix that is appending to the broker connection object name when adding and removing AMQP bridge queue sender control elements.static final StringTemplate used to denote bridge receivers on the source in the server management registry.static final StringTemplate used to denote bridge senders on the source in the server management registry. -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectNamegetBridgeAddressReceiverObjectName(org.apache.activemq.artemis.core.server.management.ManagementService management, String brokerConnection, String bridgeName, String policyType, String policyName, String address) static StringgetBridgeAddressReceiverResourceName(String brokerConnectionName, String bridgeName, String policyName, String address) static ObjectNamegetBridgeAddressSenderObjectName(org.apache.activemq.artemis.core.server.management.ManagementService management, String brokerConnection, String bridgeName, String policyType, String policyName, String address) static StringgetBridgeAddressSenderResourceName(String brokerConnectionName, String bridgeName, String policyName, String address) static ObjectNamegetBridgeManagerObjectName(org.apache.activemq.artemis.core.server.management.ManagementService management, String brokerConnection, String bridgeName) static StringgetBridgeManagerResourceName(String brokerConnectionName, String bridgeName) static ObjectNamegetBridgePolicyManagerObjectName(org.apache.activemq.artemis.core.server.management.ManagementService management, String brokerConnection, String bridgeName, String policyType, String policyName) static StringgetBridgePolicyManagerResourceName(String brokerConnectionName, String bridgeName, String policyName) static ObjectNamegetBridgeQueueReceiverObjectName(org.apache.activemq.artemis.core.server.management.ManagementService management, String brokerConnection, String bridgeName, String policyType, String policyName, String fqqn) static StringgetBridgeQueueReceiverResourceName(String brokerConnectionName, String bridgeName, String policyName, String fqqn) static ObjectNamegetBridgeQueueSenderObjectName(org.apache.activemq.artemis.core.server.management.ManagementService management, String brokerConnection, String bridgeName, String policyType, String policyName, String fqqn) static StringgetBridgeQueueSenderResourceName(String brokerConnectionName, String bridgeName, String policyName, String fqqn) static voidRegister the givenAMQPBridgeManagerinstance with the broker management services.static voidRegister an AMQP bridge policy manager with the server management services.static voidregisterBridgeReceiver(AMQPBridgeReceiver receiver) Registers the bridge receiver with the server management services on the source.static voidRegisters the bridge sender with the server management services on the source.static voidUnregister the givenAMQPBridgeManagerinstance with the broker management services.static voidUnregister an AMQP bridge policy manager with the server management services.static voidunregisterBridgeReceiver(AMQPBridgeReceiver receiver) Unregisters the bridge receiver with the server management services on the source.static voidUnregisters the bridge sender with the server management services on the source.
-
Field Details
-
BRIDGE_MANAGER_RESOURCE_TEMPLATE
Template used to denote bridge manager instances in the server management registry.- See Also:
-
BRIDGE_POLICY_RESOURCE_TEMPLATE
Template used to denote bridge policy managers created on the source in the server management registry.- See Also:
-
BRIDGE_RECEIVER_RESOURCE_TEMPLATE
Template used to denote bridge receivers on the source in the server management registry. Since policy names are unique on the local broker AMQP bridge configuration these names should not collide as each policy will create only one receiver for a given address or queue.- See Also:
-
BRIDGE_SENDER_RESOURCE_TEMPLATE
Template used to denote bridge senders on the source in the server management registry. Since policy names are unique on the local broker AMQP bridge configuration these names should not collide as each policy will create only one sender for a given address or queue.- See Also:
-
BRIDGE_NAME_TEMPLATE
The template used to create the object name suffix that is appending to the broker connection object name when adding and removing AMQP bridge related control elements.- See Also:
-
BRIDGE_POLICY_NAME_TEMPLATE
The template used to create the object name suffix that is appending to the broker connection object name when adding and removing AMQP bridge policy control elements.- See Also:
-
BRIDGE_QUEUE_RECEIVER_NAME_TEMPLATE
The template used to create the object name suffix that is appending to the broker connection object name when adding and removing AMQP bridge queue receiver control elements.- See Also:
-
BRIDGE_ADDRESS_RECEIVER_NAME_TEMPLATE
The template used to create the object name suffix that is appending to the broker connection object name when adding and removing AMQP bridge address receiver control elements.- See Also:
-
BRIDGE_QUEUE_SENDER_NAME_TEMPLATE
The template used to create the object name suffix that is appending to the broker connection object name when adding and removing AMQP bridge queue sender control elements.- See Also:
-
BRIDGE_ADDRESS_SENDER_NAME_TEMPLATE
The template used to create the object name suffix that is appending to the broker connection object name when adding and removing AMQP bridge address sender control elements.- See Also:
-
-
Method Details
-
registerBridgeManager
Register the givenAMQPBridgeManagerinstance with the broker management services.- Parameters:
bridge- The bridge manager instance being registered with management.- Throws:
Exception- if an error occurs while registering the bridge with the management services.
-
unregisterBridgeManager
Unregister the givenAMQPBridgeManagerinstance with the broker management services.- Parameters:
bridge- The bridge manager instance being unregistered from management.- Throws:
Exception- if an error occurs while unregistering the bridge with the management services.
-
getBridgeManagerResourceName
-
getBridgeManagerObjectName
public static ObjectName getBridgeManagerObjectName(org.apache.activemq.artemis.core.server.management.ManagementService management, String brokerConnection, String bridgeName) throws Exception - Throws:
Exception
-
registerBridgePolicyManager
Register an AMQP bridge policy manager with the server management services.- Parameters:
manager- The AMQP bridge policy manager instance that is being managed.- Throws:
Exception- if an error occurs while registering the manager with the management services.
-
unregisterBridgePolicyManager
Unregister an AMQP bridge policy manager with the server management services.- Parameters:
manager- The AMQP bridge policy manager instance that is being managed.- Throws:
Exception- if an error occurs while unregistering the manager with the management services.
-
getBridgePolicyManagerResourceName
-
getBridgePolicyManagerObjectName
-
registerBridgeReceiver
Registers the bridge receiver with the server management services on the source.- Parameters:
receiver- The AMQP bridge receiver instance that is being managed.- Throws:
Exception- if an error occurs while registering the receiver with the management services.
-
unregisterBridgeReceiver
Unregisters the bridge receiver with the server management services on the source.- Parameters:
receiver- The AMQP bridge receiver instance that is being managed.- Throws:
Exception- if an error occurs while registering the receiver with the management services.
-
getBridgeAddressReceiverResourceName
-
getBridgeAddressReceiverObjectName
-
getBridgeQueueReceiverResourceName
-
getBridgeQueueReceiverObjectName
-
registerBridgeSender
Registers the bridge sender with the server management services on the source.- Parameters:
sender- The AMQP bridge sender controller that manages the bridgeManager sender.- Throws:
Exception- if an error occurs while registering the producer with the management services.
-
unregisterBridgeSender
Unregisters the bridge sender with the server management services on the source.- Parameters:
sender- The AMQP bridge sender controller that manages the bridge producer.- Throws:
Exception- if an error occurs while registering the sender with the management services.
-
getBridgeAddressSenderResourceName
-
getBridgeAddressSenderObjectName
-
getBridgeQueueSenderResourceName
-
getBridgeQueueSenderObjectName
-