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)voidnodeUP(TopologyMember member, boolean last)-
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)
-
nodeDown
public void nodeDown(long eventUID, String nodeID)
-
-