Class AMQPFederationManagementSupport
java.lang.Object
org.apache.activemq.artemis.protocol.amqp.connect.federation.AMQPFederationManagementSupport
Support methods for working with the AMQP Federation 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 federation address consumer 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 federation address producer 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 federation policy 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 federation policy 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 federation queue consumer 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 federation queue producer control elements.static final StringTemplate used to denote federation consumers on the source in the server management registry.static final StringTemplate used to denote federation policy managers created on the source in the server management registry.static final StringTemplate used to denote federation producers on the source in the server management registry.static final StringTemplate used to denote federation source instances in the server management registry.static final StringTemplate used to denote federation consumers on the source in the server management registry.static final StringTemplate used to denote federation policy managers created on the source in the server management registry.static final StringTemplate used to denote federation producers on the source in the server management registry.static final StringTemplate used to denote federation source instances in the server management registry. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectNamegetFederationSourceAddressConsumerObjectName(org.apache.activemq.artemis.core.server.management.ManagementService management, String brokerConnection, String federationName, String policyType, String policyName, String address) static StringgetFederationSourceAddressConsumerResourceName(String brokerConnectionName, String federationName, String policyName, String address) static ObjectNamegetFederationSourceAddressProducerObjectName(org.apache.activemq.artemis.core.server.management.ManagementService management, String brokerConnection, String federationName, String policyType, String policyName, String address) static StringgetFederationSourceAddressProducerResourceName(String brokerConnectionName, String federationName, String policyName, String address) static ObjectNamegetFederationSourceObjectName(org.apache.activemq.artemis.core.server.management.ManagementService management, String brokerConnection, String federationName) static ObjectNamegetFederationSourcePolicyObjectName(org.apache.activemq.artemis.core.server.management.ManagementService management, String brokerConnection, String federationName, String policyType, String policyName) static StringgetFederationSourcePolicyResourceName(String brokerConnectionName, String federationName, String policyName) static ObjectNamegetFederationSourceQueueConsumerObjectName(org.apache.activemq.artemis.core.server.management.ManagementService management, String brokerConnection, String federationName, String policyType, String policyName, String fqqn) static StringgetFederationSourceQueueConsumerResourceName(String brokerConnectionName, String federationName, String policyName, String fqqn) static ObjectNamegetFederationSourceQueueProducerObjectName(org.apache.activemq.artemis.core.server.management.ManagementService management, String brokerConnection, String federationName, String policyType, String policyName, String fqqn) static StringgetFederationSourceQueueProducerResourceName(String brokerConnectionName, String federationName, String policyName, String fqqn) static StringgetFederationSourceResourceName(String brokerConnectionName, String federationName) static ObjectNamegetFederationTargetAddressConsumerObjectName(org.apache.activemq.artemis.core.server.management.ManagementService management, String remoteNodeId, String brokerConnection, String federationName, String policyType, String policyName, String address) static StringgetFederationTargetAddressConsumerResourceName(String remoteNodeId, String brokerConnectionName, String federationName, String policyName, String address) static ObjectNamegetFederationTargetAddressProducerObjectName(org.apache.activemq.artemis.core.server.management.ManagementService management, String remoteNodeId, String brokerConnection, String federationName, String policyType, String policyName, String address) static StringgetFederationTargetAddressProducerResourceName(String remoteNodeId, String brokerConnectionName, String federationName, String policyName, String address) static ObjectNamegetFederationTargetObjectName(org.apache.activemq.artemis.core.server.management.ManagementService management, String remoteNodeId, String brokerConnection, String federationName) static ObjectNamegetFederationTargetPolicyObjectName(org.apache.activemq.artemis.core.server.management.ManagementService management, String remoteNodeId, String brokerConnection, String federationName, String policyType, String policyName) static StringgetFederationTargetPolicyResourceName(String remoteNodeId, String brokerConnectionName, String federationName, String policyName) static ObjectNamegetFederationTargetQueueConsumerObjectName(org.apache.activemq.artemis.core.server.management.ManagementService management, String remoteNodeId, String brokerConnection, String federationName, String policyType, String policyName, String fqqn) static StringgetFederationTargetQueueConsumerResourceName(String remoteNodeId, String brokerConnectionName, String federationName, String policyName, String fqqn) static ObjectNamegetFederationTargetQueueProducerObjectName(org.apache.activemq.artemis.core.server.management.ManagementService management, String remoteNodeId, String brokerConnection, String federationName, String policyType, String policyName, String fqqn) static StringgetFederationTargetQueueProducerResourceName(String remoteNodeId, String brokerConnectionName, String federationName, String policyName, String fqqn) static StringgetFederationTargetResourceName(String remoteNodeId, String brokerConnectionName, String federationName) static voidregisterFederationSource(AMQPFederationSource federation) Register the givenAMQPFederationSourceinstance with the broker management services.static voidregisterFederationSourceConsumer(String brokerConnectionName, AMQPFederationConsumer consumer) Registers the federation consumer with the server management services on the source.static voidregisterFederationSourceProducer(String brokerConnectionName, AMQPFederationSenderController sender) Registers the federation producer with the server management services on the source.static voidregisterFederationTarget(String remoteNodeId, String brokerConnectionName, AMQPFederationTarget federation) Register the givenAMQPFederationTargetinstance with the broker management services.static voidregisterFederationTargetConsumer(String remoteNodeId, String brokerConnectionName, AMQPFederationConsumer consumer) Registers the federation consumer with the server management services on the target.static voidregisterFederationTargetProducer(String remoteNodeId, String brokerConnectionName, AMQPFederationSenderController sender) Registers the federation producer with the server management services on the target.static voidregisterLocalPolicyOnSource(String brokerConnectionName, AMQPFederationLocalPolicyManager manager) Register a local federation policy manager with the server management services for a federation source.static voidregisterLocalPolicyOnTarget(String remoteNodeId, String brokerConnectionName, AMQPFederationLocalPolicyManager manager) Register a local federation policy manager with the server management services for a federation target.static voidregisterRemotePolicyOnSource(String brokerConnectionName, AMQPFederationRemotePolicyManager manager) Register a remote federation policy manager with the server management services for a federation source.static voidregisterRemotePolicyOnTarget(String remoteNodeId, String brokerConnectionName, AMQPFederationRemotePolicyManager manager) Register a remote federation policy manager with the server management services for a federation target.static voidunregisterFederationSource(AMQPFederationSource federation) Unregister the givenAMQPFederationSourceinstance with the broker management services.static voidunregisterFederationSourceConsumer(String brokerConnectionName, AMQPFederationConsumer consumer) Unregisters the federation consumer with the server management services on the source.static voidunregisterFederationSourceProducer(String brokerConnectionName, AMQPFederationSenderController sender) Unregisters the federation producer with the server management services on the source.static voidunregisterFederationTarget(String remoteNodeId, String brokerConnectionName, AMQPFederationTarget federation) Unregister the givenAMQPFederationTargetinstance with the broker management services.static voidunregisterFederationTargetConsumer(String remoteNodeId, String brokerConnectionName, AMQPFederationConsumer consumer) Unregisters the federation consumer with the server management services on the target.static voidunregisterFederationTargetProducer(String remoteNodeId, String brokerConnectionName, AMQPFederationSenderController sender) Unregisters the federation producer with the server management services on the target.static voidunregisterLocalPolicyOnSource(String brokerConnectionName, AMQPFederationLocalPolicyManager manager) Unregister a local federation policy manager with the server management services for a federation source.static voidunregisterLocalPolicyOnTarget(String remoteNodeId, String brokerConnectionName, AMQPFederationLocalPolicyManager manager) Unregister a local federation policy manager with the server management services for a federation target.static voidunregisterRemotePolicyOnSource(String brokerConnectionName, AMQPFederationRemotePolicyManager manager) Unregister a remote federation policy manager with the server management services for a federation source.static voidunregisterRemotePolicyOnTarget(String remoteNodeId, String brokerConnectionName, AMQPFederationRemotePolicyManager manager) Unregister a remote federation policy manager with the server management services for a federation target.
-
Field Details
-
FEDERATION_SOURCE_RESOURCE_TEMPLATE
Template used to denote federation source instances in the server management registry.- See Also:
-
FEDERATION_SOURCE_POLICY_RESOURCE_TEMPLATE
Template used to denote federation policy managers created on the source in the server management registry.- See Also:
-
FEDERATION_SOURCE_CONSUMER_RESOURCE_TEMPLATE
Template used to denote federation consumers on the source in the server management registry. Since policy names are unique on the local broker AMQP federation configuration these names should not collide as each policy will create only one consumer for a given address or queue.- See Also:
-
FEDERATION_SOURCE_PRODUCER_RESOURCE_TEMPLATE
Template used to denote federation producers on the source in the server management registry. Since policy names are unique on the local broker AMQP federation configuration these names should not collide as each policy will create only one producer for a given address or queue.- See Also:
-
FEDERATION_TARGET_RESOURCE_TEMPLATE
Template used to denote federation source instances in the server management registry.- See Also:
-
FEDERATION_TARGET_POLICY_RESOURCE_TEMPLATE
Template used to denote federation policy managers created on the source in the server management registry.- See Also:
-
FEDERATION_TARGET_CONSUMER_RESOURCE_TEMPLATE
Template used to denote federation consumers on the source in the server management registry. Since policy names are unique on the local broker AMQP federation configuration these names should not collide as each policy will create only one consumer for a given address or queue.- See Also:
-
FEDERATION_TARGET_PRODUCER_RESOURCE_TEMPLATE
Template used to denote federation producers on the source in the server management registry. Since policy names are unique on the local broker AMQP federation configuration these names should not collide as each policy will create only one producer for a given address or queue.- See Also:
-
FEDERATION_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 federation policy control elements.- See Also:
-
FEDERATION_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 federation policy control elements.- See Also:
-
FEDERATION_QUEUE_CONSUMER_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 federation queue consumer control elements.- See Also:
-
FEDERATION_ADDRESS_CONSUMER_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 federation address consumer control elements.- See Also:
-
FEDERATION_QUEUE_PRODUCER_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 federation queue producer control elements.- See Also:
-
FEDERATION_ADDRESS_PRODUCER_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 federation address producer control elements.- See Also:
-
-
Constructor Details
-
AMQPFederationManagementSupport
public AMQPFederationManagementSupport()
-
-
Method Details
-
registerFederationSource
Register the givenAMQPFederationSourceinstance with the broker management services.- Parameters:
federation- The federation source instance being registered with management.- Throws:
Exception- if an error occurs while registering the federation with the management services.
-
unregisterFederationSource
Unregister the givenAMQPFederationSourceinstance with the broker management services.- Parameters:
federation- The federation source instance being unregistered from management.- Throws:
Exception- if an error occurs while unregistering the federation with the management services.
-
getFederationSourceResourceName
-
getFederationSourceObjectName
public static ObjectName getFederationSourceObjectName(org.apache.activemq.artemis.core.server.management.ManagementService management, String brokerConnection, String federationName) throws Exception - Throws:
Exception
-
registerFederationTarget
public static void registerFederationTarget(String remoteNodeId, String brokerConnectionName, AMQPFederationTarget federation) throws Exception Register the givenAMQPFederationTargetinstance with the broker management services.- Parameters:
federation- The federation target instance being registered with management.- Throws:
Exception- if an error occurs while registering the federation with the management services.
-
unregisterFederationTarget
public static void unregisterFederationTarget(String remoteNodeId, String brokerConnectionName, AMQPFederationTarget federation) throws Exception Unregister the givenAMQPFederationTargetinstance with the broker management services.- Parameters:
federation- The federation target instance being unregistered from management.- Throws:
Exception- if an error occurs while unregistering the federation with the management services.
-
getFederationTargetResourceName
-
getFederationTargetObjectName
-
registerLocalPolicyOnSource
public static void registerLocalPolicyOnSource(String brokerConnectionName, AMQPFederationLocalPolicyManager manager) throws Exception Register a local federation policy manager with the server management services for a federation source.- Parameters:
brokerConnectionName- The name of the broker connection that owns the manager being registered.manager- The AMQP federation policy manager instance that is being managed.- Throws:
Exception- if an error occurs while registering the manager with the management services.
-
unregisterLocalPolicyOnSource
public static void unregisterLocalPolicyOnSource(String brokerConnectionName, AMQPFederationLocalPolicyManager manager) throws Exception Unregister a local federation policy manager with the server management services for a federation source.- Parameters:
brokerConnectionName- The name of the broker connection that owns the manager being unregistered.manager- The AMQP federation policy manager instance that is being managed.- Throws:
Exception- if an error occurs while unregistering the manager with the management services.
-
registerRemotePolicyOnSource
public static void registerRemotePolicyOnSource(String brokerConnectionName, AMQPFederationRemotePolicyManager manager) throws Exception Register a remote federation policy manager with the server management services for a federation source.- Parameters:
brokerConnectionName- The name of the broker connection that owns the manager being registered.manager- The AMQP federation policy manager instance that is being managed.- Throws:
Exception- if an error occurs while registering the manager with the management services.
-
unregisterRemotePolicyOnSource
public static void unregisterRemotePolicyOnSource(String brokerConnectionName, AMQPFederationRemotePolicyManager manager) throws Exception Unregister a remote federation policy manager with the server management services for a federation source.- Parameters:
brokerConnectionName- The name of the broker connection that owns the manager being unregistered.manager- The AMQP federation policy manager instance that is being managed.- Throws:
Exception- if an error occurs while unregistering the manager with the management services.
-
getFederationSourcePolicyResourceName
-
getFederationSourcePolicyObjectName
-
registerLocalPolicyOnTarget
public static void registerLocalPolicyOnTarget(String remoteNodeId, String brokerConnectionName, AMQPFederationLocalPolicyManager manager) throws Exception Register a local federation policy manager with the server management services for a federation target.- Parameters:
remoteNodeId- The remote broker node ID that is the source of the federation operations.brokerConnectionName- The name of the remote broker connection that owns the manager being registered.manager- The AMQP federation policy manager instance that is being managed.- Throws:
Exception- if an error occurs while registering the manager with the management services.
-
unregisterLocalPolicyOnTarget
public static void unregisterLocalPolicyOnTarget(String remoteNodeId, String brokerConnectionName, AMQPFederationLocalPolicyManager manager) throws Exception Unregister a local federation policy manager with the server management services for a federation target.- Parameters:
remoteNodeId- The remote broker node ID that is the source of the federation operations.brokerConnectionName- The name of the remote broker connection that owns the manager being unregistered.manager- The AMQP federation policy manager instance that is being managed.- Throws:
Exception- if an error occurs while unregistering the manager with the management services.
-
registerRemotePolicyOnTarget
public static void registerRemotePolicyOnTarget(String remoteNodeId, String brokerConnectionName, AMQPFederationRemotePolicyManager manager) throws Exception Register a remote federation policy manager with the server management services for a federation target.- Parameters:
remoteNodeId- The remote broker node ID that is the source of the federation operations.brokerConnectionName- The name of the remote broker connection that owns the manager being registered.manager- The AMQP federation policy manager instance that is being managed.- Throws:
Exception- if an error occurs while registering the manager with the management services.
-
unregisterRemotePolicyOnTarget
public static void unregisterRemotePolicyOnTarget(String remoteNodeId, String brokerConnectionName, AMQPFederationRemotePolicyManager manager) throws Exception Unregister a remote federation policy manager with the server management services for a federation target.- Parameters:
remoteNodeId- The remote broker node ID that is the source of the federation operations.brokerConnectionName- The name of the remote broker connection that owns the manager being unregistered.manager- The AMQP federation policy manager instance that is being managed.- Throws:
Exception- if an error occurs while unregistering the manager with the management services.
-
getFederationTargetPolicyResourceName
-
getFederationTargetPolicyObjectName
-
registerFederationSourceConsumer
public static void registerFederationSourceConsumer(String brokerConnectionName, AMQPFederationConsumer consumer) throws Exception Registers the federation consumer with the server management services on the source.- Parameters:
brokerConnectionName- The name of the broker connection that owns the consumer being registered.consumer- The AMQP federation consumer instance that is being managed.- Throws:
Exception- if an error occurs while registering the consumer with the management services.
-
unregisterFederationSourceConsumer
public static void unregisterFederationSourceConsumer(String brokerConnectionName, AMQPFederationConsumer consumer) throws Exception Unregisters the federation consumer with the server management services on the source.- Parameters:
brokerConnectionName- The name of the broker connection that owns the consumer being registered.consumer- The AMQP federation consumer instance that is being managed.- Throws:
Exception- if an error occurs while registering the consumer with the management services.
-
registerFederationSourceProducer
public static void registerFederationSourceProducer(String brokerConnectionName, AMQPFederationSenderController sender) throws Exception Registers the federation producer with the server management services on the source.- Parameters:
brokerConnectionName- The name of the broker connection that owns the producer being registered.sender- The AMQP federation sender controller that manages the federation producer.- Throws:
Exception- if an error occurs while registering the producer with the management services.
-
unregisterFederationSourceProducer
public static void unregisterFederationSourceProducer(String brokerConnectionName, AMQPFederationSenderController sender) throws Exception Unregisters the federation producer with the server management services on the source.- Parameters:
brokerConnectionName- The name of the broker connection that owns the producer being registered.sender- The AMQP federation sender controller that manages the federation producer.- Throws:
Exception- if an error occurs while registering the producer with the management services.
-
getFederationSourceAddressConsumerResourceName
-
getFederationSourceQueueConsumerResourceName
-
getFederationSourceAddressProducerResourceName
-
getFederationSourceQueueProducerResourceName
-
getFederationSourceAddressConsumerObjectName
-
getFederationSourceAddressProducerObjectName
-
getFederationSourceQueueConsumerObjectName
-
getFederationSourceQueueProducerObjectName
-
registerFederationTargetConsumer
public static void registerFederationTargetConsumer(String remoteNodeId, String brokerConnectionName, AMQPFederationConsumer consumer) throws Exception Registers the federation consumer with the server management services on the target.- Parameters:
brokerConnectionName- The name of the remote broker connection that owns the consumer being registered.consumer- The AMQP federation consumer instance that is being managed.- Throws:
Exception- if an error occurs while registering the consumer with the management services.
-
unregisterFederationTargetConsumer
public static void unregisterFederationTargetConsumer(String remoteNodeId, String brokerConnectionName, AMQPFederationConsumer consumer) throws Exception Unregisters the federation consumer with the server management services on the target.- Parameters:
brokerConnectionName- The name of the remote broker connection that owns the consumer being registered.consumer- The AMQP federation consumer instance that is being managed.- Throws:
Exception- if an error occurs while registering the consumer with the management services.
-
registerFederationTargetProducer
public static void registerFederationTargetProducer(String remoteNodeId, String brokerConnectionName, AMQPFederationSenderController sender) throws Exception Registers the federation producer with the server management services on the target.- Parameters:
brokerConnectionName- The name of the remote broker connection that owns the producer being registered.sender- The AMQP federation sender controller that manages the federation producer.- Throws:
Exception- if an error occurs while registering the producer with the management services.
-
unregisterFederationTargetProducer
public static void unregisterFederationTargetProducer(String remoteNodeId, String brokerConnectionName, AMQPFederationSenderController sender) throws Exception Unregisters the federation producer with the server management services on the target.- Parameters:
brokerConnectionName- The name of the remote broker connection that owns the producer being registered.sender- The AMQP federation sender controller that manages the federation producer.- Throws:
Exception- if an error occurs while registering the producer with the management services.
-
getFederationTargetAddressConsumerResourceName
-
getFederationTargetQueueConsumerResourceName
-
getFederationTargetAddressProducerResourceName
-
getFederationTargetQueueProducerResourceName
-
getFederationTargetAddressConsumerObjectName
public static ObjectName getFederationTargetAddressConsumerObjectName(org.apache.activemq.artemis.core.server.management.ManagementService management, String remoteNodeId, String brokerConnection, String federationName, String policyType, String policyName, String address) throws Exception - Throws:
Exception
-
getFederationTargetAddressProducerObjectName
public static ObjectName getFederationTargetAddressProducerObjectName(org.apache.activemq.artemis.core.server.management.ManagementService management, String remoteNodeId, String brokerConnection, String federationName, String policyType, String policyName, String address) throws Exception - Throws:
Exception
-
getFederationTargetQueueConsumerObjectName
public static ObjectName getFederationTargetQueueConsumerObjectName(org.apache.activemq.artemis.core.server.management.ManagementService management, String remoteNodeId, String brokerConnection, String federationName, String policyType, String policyName, String fqqn) throws Exception - Throws:
Exception
-
getFederationTargetQueueProducerObjectName
public static ObjectName getFederationTargetQueueProducerObjectName(org.apache.activemq.artemis.core.server.management.ManagementService management, String remoteNodeId, String brokerConnection, String federationName, String policyType, String policyName, String fqqn) throws Exception - Throws:
Exception
-