@Bean(name="seeOtherHost", parent=ClientConnectionManager.class, active=true) @ClusterModeRequired(active=true) public class SeeOtherHostHashed extends SeeOtherHost
SeeOtherHost.SeeOtherHostVHostItemExtension, SeeOtherHost.SeeOtherHostVHostItemExtensionProvider
SeeOtherHostIfc.Phase
Modifier and Type | Field and Description |
---|---|
protected List<BareJID> |
connectedNodes |
defaultHost, eventBus, REDIRECTION_ENABLED, vHostManager
CM_SEE_OTHER_HOST_ACTIVE, CM_SEE_OTHER_HOST_CLASS_PROP_DEF_VAL, CM_SEE_OTHER_HOST_CLASS_PROP_DEF_VAL_CLUSTER, CM_SEE_OTHER_HOST_CLASS_PROP_KEY, CM_SEE_OTHER_HOST_CLASS_PROPERTY, CM_SEE_OTHER_HOST_DEFAULT_HOST, CM_SEE_OTHER_HOST_DEFAULT_PORT
Constructor and Description |
---|
SeeOtherHostHashed() |
Modifier and Type | Method and Description |
---|---|
BareJID |
findHostForJID(BareJID jid,
BareJID host)
Finds an appropriate host for a given JID
|
protected void |
nodeShutdown(ShutdownEvent event) |
void |
setNodes(List<JID> connectedNodes)
Sets list of available nodes in cluster environment
|
initialize, isEnabled, isNodeShutdown, setDefaultHost, start, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getStreamError, isRedirectionRequired
public BareJID findHostForJID(BareJID jid, BareJID host)
SeeOtherHostIfc
findHostForJID
in interface SeeOtherHostIfc
findHostForJID
in class SeeOtherHost
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 methodpublic void setNodes(List<JID> connectedNodes)
SeeOtherHostIfc
setNodes
in interface SeeOtherHostIfc
setNodes
in class SeeOtherHost
connectedNodes
- current list of nodesprotected void nodeShutdown(ShutdownEvent event)
nodeShutdown
in class SeeOtherHost
Copyright © 2004–2020 "Tigase, Inc.". All rights reserved.