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
        findHostForJID in class SeeOtherHost
        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
        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
        setNodes in class SeeOtherHost
        connectedNodes - current list of nodes