public class AnyLiveNodeLocatorForReplication extends LiveNodeLocator
| Constructor and Description |
|---|
AnyLiveNodeLocatorForReplication(SharedNothingBackupQuorum backupQuorum,
ActiveMQServerImpl server) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.activemq.artemis.api.core.Pair<org.apache.activemq.artemis.api.core.TransportConfiguration,org.apache.activemq.artemis.api.core.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(org.apache.activemq.artemis.api.core.client.TopologyMember topologyMember,
boolean last) |
void |
notifyRegistrationFailed(boolean alreadyReplicating)
tells the locator the the current connector has failed.
|
connectToClusterpublic AnyLiveNodeLocatorForReplication(SharedNothingBackupQuorum backupQuorum, ActiveMQServerImpl server)
public void locateNode()
throws org.apache.activemq.artemis.api.core.ActiveMQException
LiveNodeLocatorlocateNode in class LiveNodeLocatororg.apache.activemq.artemis.api.core.ActiveMQExceptionpublic void locateNode(long timeout)
throws org.apache.activemq.artemis.api.core.ActiveMQException
LiveNodeLocatorlocateNode in class LiveNodeLocatororg.apache.activemq.artemis.api.core.ActiveMQExceptionpublic void nodeUP(org.apache.activemq.artemis.api.core.client.TopologyMember topologyMember,
boolean last)
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.
public String getNodeID()
LiveNodeLocatorgetNodeID in class LiveNodeLocatorpublic org.apache.activemq.artemis.api.core.Pair<org.apache.activemq.artemis.api.core.TransportConfiguration,org.apache.activemq.artemis.api.core.TransportConfiguration> getLiveConfiguration()
LiveNodeLocatorgetLiveConfiguration in class LiveNodeLocatorpublic void notifyRegistrationFailed(boolean alreadyReplicating)
LiveNodeLocatornotifyRegistrationFailed in class LiveNodeLocatorCopyright © 2023 The Apache Software Foundation. All rights reserved.