Class NamedNodeIdNodeLocator
java.lang.Object
org.apache.activemq.artemis.core.server.NodeLocator
org.apache.activemq.artemis.core.server.impl.NamedNodeIdNodeLocator
- All Implemented Interfaces:
ClusterTopologyListener
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.activemq.artemis.core.server.NodeLocator
NodeLocator.BackupRegistrationListener -
Constructor Summary
ConstructorsConstructorDescriptionNamedNodeIdNodeLocator(String nodeID, Pair<TransportConfiguration, TransportConfiguration> configuration) -
Method Summary
Modifier and TypeMethodDescriptionReturns the node id for the current connector.Returns the current connector.voidLocates a server in a clustervoidlocateNode(long timeout) Locates a server in a cluster with a timeoutvoidTriggered when a node leaves the cluster.voidnodeUP(TopologyMember member, boolean last) Triggered when a node joins the cluster.Methods inherited from class org.apache.activemq.artemis.core.server.NodeLocator
connectToCluster, notifyRegistrationFailed
-
Constructor Details
-
NamedNodeIdNodeLocator
public NamedNodeIdNodeLocator(String nodeID, Pair<TransportConfiguration, TransportConfiguration> configuration)
-
-
Method Details
-
locateNode
Description copied from class:NodeLocatorLocates a server in a cluster with a timeout- Specified by:
locateNodein classNodeLocator- Throws:
ActiveMQException
-
locateNode
Description copied from class:NodeLocatorLocates a server in a cluster- Specified by:
locateNodein classNodeLocator- Throws:
ActiveMQException
-
getPrimaryConfiguration
Description copied from class:NodeLocatorReturns the current connector.- Specified by:
getPrimaryConfigurationin classNodeLocator- Returns:
- the current connector
-
getNodeID
Description copied from class:NodeLocatorReturns the node id for the current connector.- Specified by:
getNodeIDin classNodeLocator- Returns:
- the node id for the current connector
-
nodeUP
Description copied from interface:ClusterTopologyListenerTriggered when a node joins the cluster.last- if the whole cluster topology is being transmitted (after adding the listener to the cluster connection) this parameter will betruefor the last topology member.
-
nodeDown
Description copied from interface:ClusterTopologyListenerTriggered when a node leaves the cluster.nodeID- the id of the node leaving the cluster
-