public abstract class LiveNodeLocator extends Object implements ClusterTopologyListener
Constructor and Description |
---|
LiveNodeLocator()
Use this constructor when the LiveNodeLocator is used for scaling down rather than replicating
|
LiveNodeLocator(SharedNothingBackupQuorum backupQuorum) |
Modifier and Type | Method and Description |
---|---|
void |
connectToCluster(ServerLocatorInternal serverLocator)
connects to the cluster
|
abstract Pair<TransportConfiguration,TransportConfiguration> |
getLiveConfiguration()
Returns the current connector
|
abstract String |
getNodeID()
Returns the node id for the current connector
|
abstract void |
locateNode()
Locates a possible live server in a cluster
|
abstract void |
locateNode(long timeout)
Locates a possible live server in a cluster with a timeout
|
void |
notifyRegistrationFailed(boolean alreadyReplicating)
tells the locator the the current connector has failed.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
nodeDown, nodeUP
public LiveNodeLocator(SharedNothingBackupQuorum backupQuorum)
public LiveNodeLocator()
public abstract void locateNode(long timeout) throws ActiveMQException
ActiveMQException
public abstract void locateNode() throws ActiveMQException
ActiveMQException
public abstract Pair<TransportConfiguration,TransportConfiguration> getLiveConfiguration()
public abstract String getNodeID()
public void notifyRegistrationFailed(boolean alreadyReplicating)
public void connectToCluster(ServerLocatorInternal serverLocator) throws ActiveMQException
ActiveMQException
Copyright © 2017 JBoss by Red Hat. All rights reserved.