Class TopologyMemberImpl

java.lang.Object
org.apache.activemq.artemis.core.client.impl.TopologyMemberImpl
All Implemented Interfaces:
TopologyMember

public final class TopologyMemberImpl extends Object implements TopologyMember
  • Constructor Details

  • Method Details

    • getLive

      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: TopologyMember
      Returns configuration relative to the live server.
      Specified by:
      getLive in interface TopologyMember
      Returns:
      configuration relative to the live server
    • getPrimary

      public TransportConfiguration getPrimary()
      Description copied from interface: TopologyMember
      Returns configuration relative to the primary server.
      Specified by:
      getPrimary in interface TopologyMember
      Returns:
      configuration relative to the primary server
    • getBackup

      public TransportConfiguration getBackup()
      Description copied from interface: TopologyMember
      Returns a TransportConfiguration for the backup, or null if the primary server has no backup server..
      Specified by:
      getBackup in interface TopologyMember
      Returns:
      a TransportConfiguration for the backup, or null if the primary server has no backup server.
    • setBackup

      public void setBackup(TransportConfiguration param)
    • setPrimary

      public void setPrimary(TransportConfiguration param)
    • getNodeId

      public String getNodeId()
      Description copied from interface: TopologyMember
      Returns the nodeId of the server.
      Specified by:
      getNodeId in interface TopologyMember
      Returns:
      the nodeId of the server
    • getUniqueEventID

      public long getUniqueEventID()
      Description copied from interface: TopologyMember
      Returns long value representing a unique event ID.
      Specified by:
      getUniqueEventID in interface TopologyMember
      Returns:
      long value representing a unique event ID
    • getBackupGroupName

      public String getBackupGroupName()
      Description copied from interface: TopologyMember
      Returns the backup-group-name of 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:
      getBackupGroupName in interface TopologyMember
      Returns:
      the backup-group-name
    • getScaleDownGroupName

      public String getScaleDownGroupName()
      Description copied from interface: TopologyMember
      Returns the scale-down-group-name of 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:
      getScaleDownGroupName in interface TopologyMember
      Returns:
      the scale-down-group-name
    • setUniqueEventID

      public void setUniqueEventID(long uniqueEventID)
    • getConnector

    • isMember

      public boolean isMember(RemotingConnection connection)
      We only need to check if the connection point to the same node, don't need to compare the whole params map.
      Specified by:
      isMember in interface TopologyMember
      Parameters:
      connection - The connection to the target node
      Returns:
      true if the connection point to the same node as this member represents.
    • isMember

      public boolean isMember(TransportConfiguration configuration)
      Description copied from interface: TopologyMember
      Returns true if this configuration is the target of this remoting connection.
      Specified by:
      isMember in interface TopologyMember
      Returns:
      true if this configuration is the target of this remoting connection
    • toURI

      public String toURI()
      Specified by:
      toURI in interface TopologyMember
    • toBackupURI

      public URI toBackupURI()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object