Class Topology
java.lang.Object
org.apache.activemq.artemis.core.client.impl.Topology
A
Topology describes the other cluster nodes that this server knows about.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclear()It will remove all elements as if it haven't received anyone from the server.describe()getBackupForConnector(Connector connector) booleanisEmpty()voidvoidresendNode(String nodeId) After the node is started, it will resend the notifyPrimary a couple of times to avoid gossip between two serversvoidsendTopology(ClusterTopologyListener listener) setExecutor(Executor executor) voidThe owner exists mainly for debug purposes.toString()voidupdateAsPrimary(String nodeId, TopologyMemberImpl memberInput) This is called by the server when the node is activated from backup state.updateBackup(TopologyMemberImpl memberInput) This is called by the server when the node is activated from backup state.booleanupdateMember(long uniqueEventID, String nodeId, TopologyMemberImpl memberInput) Update a member
-
Constructor Details
-
Topology
-
Topology
-
-
Method Details
-
setExecutor
-
clear
public void clear()It will remove all elements as if it haven't received anyone from the server. -
addClusterTopologyListener
-
removeClusterTopologyListener
-
updateAsPrimary
This is called by the server when the node is activated from backup state. It will always succeed -
resendNode
After the node is started, it will resend the notifyPrimary a couple of times to avoid gossip between two servers -
updateBackup
This is called by the server when the node is activated from backup state. It will always succeed -
updateMember
Update a member- Parameters:
uniqueEventID- an unique identifier for when the change was made. We will use current time millis for starts, and a ++ of that number for shutdown.- Returns:
trueif an update did take place. Note that backups are *always* updated
-
sendTopology
-
getMember
-
getMember
-
isEmpty
public boolean isEmpty() -
getMembers
-
describe
-
setOwner
The owner exists mainly for debug purposes. When enabling logging and tracing, the Topology updates will include the owner, what will enable to identify what instances are receiving the updates, what will enable better debugging. -
getBackupForConnector
-
toString
-