Class SeeOtherHostHashed

    • Field Detail

      • connectedNodes

        protected java.util.List<BareJID> connectedNodes
    • Constructor Detail

      • SeeOtherHostHashed

        public SeeOtherHostHashed()
    • Method Detail

      • findHostForJID

        public BareJID findHostForJID​(BareJID jid,
                                      BareJID host)
        Description copied from interface: SeeOtherHostIfc
        Finds an appropriate host for a given JID
        Specified by:
        findHostForJID in interface SeeOtherHostIfc
        Overrides:
        findHostForJID in class SeeOtherHost
        Parameters:
        jid - is a user JID extracted from the stream open attributes
        host - is "this" host to which the user is now connected and which calls the method
        Returns:
        BareJID of possible host to which the user should connect or NULL
      • setNodes

        public void setNodes​(java.util.List<JID> connectedNodes)
        Description copied from interface: SeeOtherHostIfc
        Sets list of available nodes in cluster environment
        Specified by:
        setNodes in interface SeeOtherHostIfc
        Overrides:
        setNodes in class SeeOtherHost
        Parameters:
        connectedNodes - current list of nodes