public class AnyLiveNodeLocatorForReplication extends LiveNodeLocator
| Constructor and Description |
|---|
AnyLiveNodeLocatorForReplication(SharedNothingBackupQuorum backupQuorum,
ActiveMQServerImpl server) |
| 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)
if a node goes down we try all the connectors again as one may now be available for
replication
|
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 AnyLiveNodeLocatorForReplication(SharedNothingBackupQuorum backupQuorum, ActiveMQServerImpl server)
public void locateNode()
throws ActiveMQException
LiveNodeLocatorlocateNode in class LiveNodeLocatorActiveMQExceptionpublic void locateNode(long timeout)
throws ActiveMQException
LiveNodeLocatorlocateNode in class LiveNodeLocatorActiveMQExceptionpublic 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)
TODO: there will be a better way to do this by finding which nodes backup has gone down.
nodeID - 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 © 2018 JBoss by Red Hat. All rights reserved.