Class NamedNodeIdNodeLocator
- java.lang.Object
-
- org.apache.activemq.artemis.core.server.LiveNodeLocator
-
- org.apache.activemq.artemis.core.server.impl.NamedNodeIdNodeLocator
-
- All Implemented Interfaces:
ClusterTopologyListener
public class NamedNodeIdNodeLocator extends LiveNodeLocator
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.activemq.artemis.core.server.LiveNodeLocator
LiveNodeLocator.BackupRegistrationListener
-
-
Constructor Summary
Constructors Constructor Description NamedNodeIdNodeLocator(String nodeID, Pair<TransportConfiguration,TransportConfiguration> liveConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Pair<TransportConfiguration,TransportConfiguration>getLiveConfiguration()Returns the current connectorStringgetNodeID()Returns the node id for the current connectorvoidlocateNode()Locates a possible live server in a clustervoidlocateNode(long timeout)Locates a possible live server in a cluster with a timeoutvoidnodeDown(long eventUID, String nodeID)Triggered 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.LiveNodeLocator
connectToCluster, notifyRegistrationFailed
-
-
-
-
Constructor Detail
-
NamedNodeIdNodeLocator
public NamedNodeIdNodeLocator(String nodeID, Pair<TransportConfiguration,TransportConfiguration> liveConfiguration)
-
-
Method Detail
-
locateNode
public void locateNode(long timeout) throws ActiveMQExceptionDescription copied from class:LiveNodeLocatorLocates a possible live server in a cluster with a timeout- Specified by:
locateNodein classLiveNodeLocator- Throws:
ActiveMQException
-
locateNode
public void locateNode() throws ActiveMQExceptionDescription copied from class:LiveNodeLocatorLocates a possible live server in a cluster- Specified by:
locateNodein classLiveNodeLocator- Throws:
ActiveMQException
-
getLiveConfiguration
public Pair<TransportConfiguration,TransportConfiguration> getLiveConfiguration()
Description copied from class:LiveNodeLocatorReturns the current connector- Specified by:
getLiveConfigurationin classLiveNodeLocator
-
getNodeID
public String getNodeID()
Description copied from class:LiveNodeLocatorReturns the node id for the current connector- Specified by:
getNodeIDin classLiveNodeLocator
-
nodeUP
public void nodeUP(TopologyMember member, boolean last)
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
public void nodeDown(long eventUID, String nodeID)Description copied from interface:ClusterTopologyListenerTriggered when a node leaves the cluster.nodeID- the id of the node leaving the cluster
-
-