Class FederatedAddress
- java.lang.Object
-
- org.apache.activemq.artemis.core.server.federation.FederatedAbstract
-
- org.apache.activemq.artemis.core.server.federation.address.FederatedAddress
-
- All Implemented Interfaces:
Serializable,ActiveMQServerAddressPlugin,ActiveMQServerBasePlugin,ActiveMQServerBindingPlugin
public class FederatedAddress extends FederatedAbstract implements ActiveMQServerBindingPlugin, ActiveMQServerAddressPlugin, Serializable
Federated Address, replicate messages from the remote brokers address to itself. Only when a queue exists on the local broker do we replicate, this is to avoid un-needed replication All messages are replicated, this is on purpose so should a number queues exist with different filters we dont have have a consumer per queue filter.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFederatedAddress.Matcher
-
Field Summary
Fields Modifier and Type Field Description static StringFEDERATED_QUEUE_PREFIXstatic SimpleStringHDR_HOPS-
Fields inherited from class org.apache.activemq.artemis.core.server.federation.FederatedAbstract
federation, remoteQueueConsumers, server, upstream, wildcardConfiguration
-
-
Constructor Summary
Constructors Constructor Description FederatedAddress(Federation federation, FederationAddressPolicyConfiguration config, ActiveMQServer server, FederationUpstream upstream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterAddAddress(AddressInfo addressInfo, boolean reload)After an address has been added tot he brokervoidafterAddBinding(Binding binding)After a binding has been addedvoidbeforeRemoveBinding(SimpleString uniqueName, Transaction tx, boolean deleteData)Before a binding is removedFederationAddressPolicyConfigurationgetConfig()voidstart()-
Methods inherited from class org.apache.activemq.artemis.core.server.federation.FederatedAbstract
createRemoteConsumer, getTransformer, isStarted, mergeTransformers, registered, removeRemoteConsumer, stop, unregistered
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.activemq.artemis.core.server.plugin.ActiveMQServerAddressPlugin
afterRemoveAddress, afterUpdateAddress, beforeAddAddress, beforeRemoveAddress, beforeUpdateAddress
-
Methods inherited from interface org.apache.activemq.artemis.core.server.plugin.ActiveMQServerBasePlugin
init, registered, unregistered
-
Methods inherited from interface org.apache.activemq.artemis.core.server.plugin.ActiveMQServerBindingPlugin
afterRemoveBinding, beforeAddBinding
-
-
-
-
Field Detail
-
FEDERATED_QUEUE_PREFIX
public static final String FEDERATED_QUEUE_PREFIX
- See Also:
- Constant Field Values
-
HDR_HOPS
public static final SimpleString HDR_HOPS
-
-
Constructor Detail
-
FederatedAddress
public FederatedAddress(Federation federation, FederationAddressPolicyConfiguration config, ActiveMQServer server, FederationUpstream upstream)
-
-
Method Detail
-
start
public void start()
- Overrides:
startin classFederatedAbstract
-
afterAddAddress
public void afterAddAddress(AddressInfo addressInfo, boolean reload)
Description copied from interface:ActiveMQServerAddressPluginAfter an address has been added tot he broker- Specified by:
afterAddAddressin interfaceActiveMQServerAddressPlugin- Parameters:
addressInfo- The newly added addressreload- If the address is being reloaded
-
afterAddBinding
public void afterAddBinding(Binding binding)
Description copied from interface:ActiveMQServerBindingPluginAfter a binding has been added- Specified by:
afterAddBindingin interfaceActiveMQServerBindingPlugin- Parameters:
binding- The newly added binding
-
beforeRemoveBinding
public void beforeRemoveBinding(SimpleString uniqueName, Transaction tx, boolean deleteData)
Description copied from interface:ActiveMQServerBindingPluginBefore a binding is removed- Specified by:
beforeRemoveBindingin interfaceActiveMQServerBindingPlugin
-
getConfig
public FederationAddressPolicyConfiguration getConfig()
-
-