public class NamedNodeIdNodeLocator extends LiveNodeLocator
| Constructor and Description |
|---|
NamedNodeIdNodeLocator(String nodeID,
Pair<TransportConfiguration,TransportConfiguration> liveConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
Pair<TransportConfiguration,TransportConfiguration> |
getLiveConfiguration()
Returns the current connector
|
String |
getNodeID()
Returns the node id for the current connector
|
void |
locateNode()
Locates a possible live server in a cluster
|
void |
locateNode(long timeout)
Locates a possible live server in a cluster with a timeout
|
void |
nodeDown(long eventUID,
String nodeID)
Triggered when a node leaves the cluster.
|
void |
nodeUP(TopologyMember member,
boolean last)
Triggered when a node joins the cluster.
|
connectToCluster, notifyRegistrationFailedpublic NamedNodeIdNodeLocator(String nodeID, Pair<TransportConfiguration,TransportConfiguration> liveConfiguration)
public void locateNode(long timeout)
throws ActiveMQException
LiveNodeLocatorlocateNode in class LiveNodeLocatorActiveMQExceptionpublic void locateNode()
throws ActiveMQException
LiveNodeLocatorlocateNode in class LiveNodeLocatorActiveMQExceptionpublic Pair<TransportConfiguration,TransportConfiguration> getLiveConfiguration()
LiveNodeLocatorgetLiveConfiguration in class LiveNodeLocatorpublic String getNodeID()
LiveNodeLocatorgetNodeID in class LiveNodeLocatorpublic void nodeUP(TopologyMember member, boolean last)
ClusterTopologyListenerlast - if the whole cluster topology is being transmitted (after adding the listener to
the cluster connection) this parameter will be true for the last topology
member.public void nodeDown(long eventUID,
String nodeID)
ClusterTopologyListenernodeID - the id of the node leaving the clusterCopyright © 2018 JBoss by Red Hat. All rights reserved.