Class FederationDownstream
- java.lang.Object
-
- org.apache.activemq.artemis.core.server.federation.AbstractFederationStream
-
- org.apache.activemq.artemis.core.server.federation.FederationDownstream
-
- All Implemented Interfaces:
SessionFailureListener,FailureListener,FederationStream
public class FederationDownstream extends AbstractFederationStream implements SessionFailureListener
-
-
Field Summary
Fields Modifier and Type Field Description static StringFEDERATION_DOWNSTREAM_NAME-
Fields inherited from class org.apache.activemq.artemis.core.server.federation.AbstractFederationStream
connection, federatedAddressMap, federatedQueueMap, federation, name, server
-
-
Constructor Summary
Constructors Constructor Description FederationDownstream(ActiveMQServer server, Federation federation, String name, FederationDownstreamConfiguration config, FederationConnection connection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeforeReconnect(ActiveMQException exception)Notifies that a connection has failed due to the specified exception.voidconnectionFailed(ActiveMQException exception, boolean failedOver)Notifies that a connection has failed due to the specified exception.voidconnectionFailed(ActiveMQException exception, boolean failedOver, String scaleDownTargetNodeID)Notifies that a connection has failed due to the specified exception.voiddeploy(FederationConfiguration federationConfiguration)voidstart()voidstop()voidundeploy()-
Methods inherited from class org.apache.activemq.artemis.core.server.federation.AbstractFederationStream
callFederationStreamStartedPlugins, callFederationStreamStoppedPlugins, getConfig, getConnection, getFederation, getName, getPassword, getPriorityAdjustment, getUser
-
-
-
-
Field Detail
-
FEDERATION_DOWNSTREAM_NAME
public static final String FEDERATION_DOWNSTREAM_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FederationDownstream
public FederationDownstream(ActiveMQServer server, Federation federation, String name, FederationDownstreamConfiguration config, FederationConnection connection)
-
-
Method Detail
-
start
public void start()
- Specified by:
startin interfaceFederationStream- Overrides:
startin classAbstractFederationStream
-
stop
public void stop()
- Specified by:
stopin interfaceFederationStream- Overrides:
stopin classAbstractFederationStream
-
deploy
public void deploy(FederationConfiguration federationConfiguration) throws ActiveMQException
- Throws:
ActiveMQException
-
undeploy
public void undeploy()
-
connectionFailed
public void connectionFailed(ActiveMQException exception, boolean failedOver)
Description copied from interface:FailureListenerNotifies that a connection has failed due to the specified exception.- Specified by:
connectionFailedin interfaceFailureListener- Parameters:
exception- exception which has caused the connection to fail
-
connectionFailed
public void connectionFailed(ActiveMQException exception, boolean failedOver, String scaleDownTargetNodeID)
Description copied from interface:FailureListenerNotifies that a connection has failed due to the specified exception.- Specified by:
connectionFailedin interfaceFailureListener- Parameters:
exception- exception which has caused the connection to failscaleDownTargetNodeID- the ID of the node to which messages are scaling down
-
beforeReconnect
public void beforeReconnect(ActiveMQException exception)
Description copied from interface:SessionFailureListenerNotifies that a connection has failed due to the specified exception.
This method is called before the session attempts to reconnect/failover.- Specified by:
beforeReconnectin interfaceSessionFailureListener- Parameters:
exception- exception which has caused the connection to fail
-
-