Class SeeOtherHostDB

    • Field Detail

      • SEE_OTHER_HOST_TABLE

        public static final java.lang.String SEE_OTHER_HOST_TABLE
        See Also:
        Constant Field Values
      • SEE_OTHER_HOST_DB_URL_KEY

        public static final java.lang.String SEE_OTHER_HOST_DB_URL_KEY
        See Also:
        Constant Field Values
      • SEE_OTHER_HOST_DB_QUERY_KEY

        public static final java.lang.String SEE_OTHER_HOST_DB_QUERY_KEY
        See Also:
        Constant Field Values
      • DB_GET_ALL_DATA_DB_QUERY_KEY

        public static final java.lang.String DB_GET_ALL_DATA_DB_QUERY_KEY
        See Also:
        Constant Field Values
      • GET_ALL_QUERY_TIMEOUT_QUERY_KEY

        public static final java.lang.String GET_ALL_QUERY_TIMEOUT_QUERY_KEY
        See Also:
        Constant Field Values
    • Constructor Detail

      • SeeOtherHostDB

        public SeeOtherHostDB()
    • 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 SeeOtherHostHashed
        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
      • register

        public void register​(Kernel kernel)
        Description copied from interface: RegistrarBean
        Method called when bean is being registered allowing developer to programatically register other beans.
        Specified by:
        register in interface RegistrarBean
        Parameters:
        kernel - - instance from local scope
      • unregister

        public void unregister​(Kernel kernel)
        Description copied from interface: RegistrarBean
        Method called while bean is being unregistered.
        Specified by:
        unregister in interface RegistrarBean
        Parameters:
        kernel - - instance from local scope