Class SeeOtherHostDB
java.lang.Object
tigase.server.xmppclient.SeeOtherHost
tigase.server.xmppclient.SeeOtherHostHashed
tigase.server.xmppclient.SeeOtherHostDB
- All Implemented Interfaces:
Initializable, RegistrarBean, Lifecycle, SeeOtherHostIfc
Extended implementation of SeeOtherHost using redirect information from database
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic interfaceNested classes/interfaces inherited from class SeeOtherHost
SeeOtherHost.SeeOtherHostVHostItemExtension, SeeOtherHost.SeeOtherHostVHostItemExtensionProviderNested classes/interfaces inherited from interface SeeOtherHostIfc
SeeOtherHostIfc.Phase -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class SeeOtherHostHashed
connectedNodesFields inherited from class SeeOtherHost
defaultHost, eventBus, REDIRECTION_ENABLED, vHostManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindHostForJID(BareJID jid, BareJID host) Finds an appropriate host for a given JIDvoidMethod called when bean is being registered allowing developer to programatically register other beans.voidunregister(Kernel kernel) Method called while bean is being unregistered.Methods inherited from class SeeOtherHostHashed
nodeShutdown, setNodesMethods inherited from class SeeOtherHost
initialize, isEnabled, isNodeShutdown, setDefaultHost, start, stopMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SeeOtherHostIfc
getStreamError, isRedirectionRequired
-
Field Details
-
SEE_OTHER_HOST_TABLE
- See Also:
-
SEE_OTHER_HOST_DB_URL_KEY
- See Also:
-
SEE_OTHER_HOST_DB_QUERY_KEY
- See Also:
-
DB_GET_ALL_DATA_DB_QUERY_KEY
- See Also:
-
GET_ALL_QUERY_TIMEOUT_QUERY_KEY
- See Also:
-
SERIAL_ID
- See Also:
-
USER_ID
- See Also:
-
NODE_ID
- See Also:
-
-
Constructor Details
-
SeeOtherHostDB
public SeeOtherHostDB()
-
-
Method Details
-
findHostForJID
Description copied from interface:SeeOtherHostIfcFinds an appropriate host for a given JID- Specified by:
findHostForJIDin interfaceSeeOtherHostIfc- Overrides:
findHostForJIDin classSeeOtherHostHashed- Parameters:
jid- is a user JID extracted from the stream open attributeshost- 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
Description copied from interface:RegistrarBeanMethod called when bean is being registered allowing developer to programatically register other beans.- Specified by:
registerin interfaceRegistrarBean- Parameters:
kernel- - instance from local scope
-
unregister
Description copied from interface:RegistrarBeanMethod called while bean is being unregistered.- Specified by:
unregisterin interfaceRegistrarBean- Parameters:
kernel- - instance from local scope
-