Class TopologyMemberImpl

    • Method Detail

      • getUniqueEventID

        public long getUniqueEventID()
        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 live server and backup servers associated with Topology entry.

        This is a server configuration value. A (remote) backup will only work with live servers that have a matching backup-group-name.

        This value does not apply to "shared-storage" backup and live 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 live server with this Topology entry.

        This is a server configuration value. a live server will only send its messages to another live 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)
        Parameters:
        uniqueEventID - the uniqueEventID to set
      • 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.
      • toBackupURI

        public URI toBackupURI()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object