Class TopologyMemberImpl
java.lang.Object
org.apache.activemq.artemis.core.client.impl.TopologyMemberImpl
- All Implemented Interfaces:
TopologyMember
-
Constructor Summary
ConstructorsConstructorDescriptionTopologyMemberImpl(String nodeId, String backupGroupName, String scaleDownGroupName, TransportConfiguration a, TransportConfiguration b) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns aTransportConfigurationfor the backup, or null if the primary server has no backup server..Returns thebackup-group-nameof the primary server and backup servers associated with Topology entry.getLive()Deprecated, for removal: This API element is subject to removal in a future version.Returns the nodeId of the server.Returns configuration relative to the primary server.Returns thescale-down-group-nameof the server with this Topology entry.longReturns long value representing a unique event ID.inthashCode()booleanisMember(TransportConfiguration configuration) Returnstrueif this configuration is the target of this remoting connection.booleanisMember(RemotingConnection connection) We only need to check if the connection point to the same node, don't need to compare the whole params map.voidsetBackup(TransportConfiguration param) voidsetPrimary(TransportConfiguration param) voidsetUniqueEventID(long uniqueEventID) toString()toURI()
-
Constructor Details
-
TopologyMemberImpl
public TopologyMemberImpl(String nodeId, String backupGroupName, String scaleDownGroupName, TransportConfiguration a, TransportConfiguration b)
-
-
Method Details
-
getLive
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TopologyMemberReturns configuration relative to the live server.- Specified by:
getLivein interfaceTopologyMember- Returns:
- configuration relative to the live server
-
getPrimary
Description copied from interface:TopologyMemberReturns configuration relative to the primary server.- Specified by:
getPrimaryin interfaceTopologyMember- Returns:
- configuration relative to the primary server
-
getBackup
Description copied from interface:TopologyMemberReturns aTransportConfigurationfor the backup, or null if the primary server has no backup server..- Specified by:
getBackupin interfaceTopologyMember- Returns:
- a
TransportConfigurationfor the backup, or null if the primary server has no backup server.
-
setBackup
-
setPrimary
-
getNodeId
Description copied from interface:TopologyMemberReturns the nodeId of the server.- Specified by:
getNodeIdin interfaceTopologyMember- Returns:
- the nodeId of the server
-
getUniqueEventID
public long getUniqueEventID()Description copied from interface:TopologyMemberReturns long value representing a unique event ID.- Specified by:
getUniqueEventIDin interfaceTopologyMember- Returns:
- long value representing a unique event ID
-
getBackupGroupName
Description copied from interface:TopologyMemberReturns thebackup-group-nameof the primary server and backup servers associated with Topology entry.This is a server configuration value. A (remote) backup will only work with primary servers that have a matching
backup-group-name.This value does not apply to "shared-storage" backup and primary pairs.
- Specified by:
getBackupGroupNamein interfaceTopologyMember- Returns:
- the
backup-group-name
-
getScaleDownGroupName
Description copied from interface:TopologyMemberReturns thescale-down-group-nameof the server with this Topology entry.This is a server configuration value. An active server will only send its messages to another active server with matching
scale-down-group-name.- Specified by:
getScaleDownGroupNamein interfaceTopologyMember- Returns:
- the
scale-down-group-name
-
setUniqueEventID
public void setUniqueEventID(long uniqueEventID) -
getConnector
-
isMember
We only need to check if the connection point to the same node, don't need to compare the whole params map.- Specified by:
isMemberin interfaceTopologyMember- Parameters:
connection- The connection to the target node- Returns:
- true if the connection point to the same node as this member represents.
-
isMember
Description copied from interface:TopologyMemberReturnstrueif this configuration is the target of this remoting connection.- Specified by:
isMemberin interfaceTopologyMember- Returns:
trueif this configuration is the target of this remoting connection
-
toURI
- Specified by:
toURIin interfaceTopologyMember
-
toBackupURI
-
toString
-
equals
-
hashCode
public int hashCode()
-