public class NamedLiveNodeLocatorForReplication extends LiveNodeLocator
HAPolicy.getScaleDownGroupName()
Constructor and Description |
---|
NamedLiveNodeLocatorForReplication(String backupGroupName,
SharedNothingBackupQuorum 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 |
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 topologyMember,
boolean last)
Triggered when a node joins the cluster.
|
void |
notifyRegistrationFailed(boolean alreadyReplicating)
tells the locator the the current connector has failed.
|
connectToCluster
public NamedLiveNodeLocatorForReplication(String backupGroupName, SharedNothingBackupQuorum quorumManager)
public void locateNode() throws ActiveMQException
LiveNodeLocator
locateNode
in class LiveNodeLocator
ActiveMQException
public void locateNode(long timeout) throws ActiveMQException
LiveNodeLocator
locateNode
in class LiveNodeLocator
ActiveMQException
public void nodeUP(TopologyMember topologyMember, boolean last)
ClusterTopologyListener
last
- 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)
ClusterTopologyListener
nodeID
- the id of the node leaving the clusterpublic String getNodeID()
LiveNodeLocator
getNodeID
in class LiveNodeLocator
public Pair<TransportConfiguration,TransportConfiguration> getLiveConfiguration()
LiveNodeLocator
getLiveConfiguration
in class LiveNodeLocator
public void notifyRegistrationFailed(boolean alreadyReplicating)
LiveNodeLocator
notifyRegistrationFailed
in class LiveNodeLocator
Copyright © 2018 JBoss by Red Hat. All rights reserved.