public class NamedLiveNodeLocator extends LiveNodeLocator
Configuration.getBackupGroupName()| Constructor and Description |
|---|
NamedLiveNodeLocator(String nodeGroupName,
QuorumManager quorumManager) |
| 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 |
nodeDown(long eventUID,
String nodeID)
Triggered when a node leaves the cluster.
|
void |
nodeUP(TopologyMember topologyMember,
boolean last)
Triggered when a node joins the cluster.
|
void |
notifyRegistrationFailed(boolean alreadyReplicating)
tells the locator the the current connector has failed.
|
connectToClusterpublic NamedLiveNodeLocator(String nodeGroupName, QuorumManager quorumManager)
public void locateNode()
throws HornetQException
LiveNodeLocatorlocateNode in class LiveNodeLocatorHornetQExceptionpublic void nodeUP(TopologyMember topologyMember, 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 clusterpublic String getNodeID()
LiveNodeLocatorgetNodeID in class LiveNodeLocatorpublic Pair<TransportConfiguration,TransportConfiguration> getLiveConfiguration()
LiveNodeLocatorgetLiveConfiguration in class LiveNodeLocatorpublic void notifyRegistrationFailed(boolean alreadyReplicating)
LiveNodeLocatornotifyRegistrationFailed in class LiveNodeLocatorCopyright © 2013 JBoss, a division of Red Hat. All rights reserved.