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:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class org.apache.activemq.artemis.core.server.federation.FederatedAbstract
federation, remoteQueueConsumers, server, upstream, wildcardConfiguration -
Constructor Summary
ConstructorsConstructorDescriptionFederatedAddress(Federation federation, FederationAddressPolicyConfiguration config, ActiveMQServer server, FederationUpstream upstream) -
Method Summary
Modifier and TypeMethodDescriptionvoidafterAddAddress(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 removedvoidstart()Methods inherited from class org.apache.activemq.artemis.core.server.federation.FederatedAbstract
createRemoteConsumer, getTransformer, isStarted, mergeTransformers, registered, removeRemoteConsumer, stop, unregisteredMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.activemq.artemis.core.server.plugin.ActiveMQServerAddressPlugin
afterRemoveAddress, afterUpdateAddress, beforeAddAddress, beforeRemoveAddress, beforeUpdateAddressMethods inherited from interface org.apache.activemq.artemis.core.server.plugin.ActiveMQServerBasePlugin
init, registered, setInit, unregisteredMethods inherited from interface org.apache.activemq.artemis.core.server.plugin.ActiveMQServerBindingPlugin
afterRemoveBinding, beforeAddBinding
-
Field Details
-
FEDERATED_QUEUE_PREFIX
- See Also:
-
HDR_HOPS
-
-
Constructor Details
-
FederatedAddress
public FederatedAddress(Federation federation, FederationAddressPolicyConfiguration config, ActiveMQServer server, FederationUpstream upstream)
-
-
Method Details
-
start
public void start()- Overrides:
startin classFederatedAbstract
-
afterAddAddress
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
Description copied from interface:ActiveMQServerBindingPluginAfter a binding has been added- Specified by:
afterAddBindingin interfaceActiveMQServerBindingPlugin- Parameters:
binding- The newly added binding
-
beforeRemoveBinding
Description copied from interface:ActiveMQServerBindingPluginBefore a binding is removed- Specified by:
beforeRemoveBindingin interfaceActiveMQServerBindingPlugin
-
getConfig
-