Tigase implementation is, as usual, extensible and allows for different, pluggable redirection strategies that implement the
SeeOtherHostIfc
interface.
Currently there are three strategies available:
SeeOtherHost
- most basic implementation returning either single host configured in init.properties file or name of the current host;SeeOtherHostHashed
(default) - default implementation for cluster environment of SeeOtherHostIfc returning redirect host based on the hash value of the user’s JID; list of the available nodes from which a selection would be made is by default composed and reflects all connected nodes, alternatively hosts list can be configured in the init.properties;SeeOtherHostDB
- extended implementation of SeeOtherHost using redirect information from database in the form of pairs user_id and node_id to which given user should be redirected.