public class SeeOtherHostHashed extends SeeOtherHost
SeeOtherHostIfc.Phase
Modifier and Type | Field and Description |
---|---|
protected List<tigase.xmpp.BareJID> |
connectedNodes |
defaultHost
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 |
---|---|
tigase.xmpp.BareJID |
findHostForJID(tigase.xmpp.BareJID jid,
tigase.xmpp.BareJID host)
Finds an appropriate host for a given JID
|
void |
setNodes(List<tigase.xmpp.BareJID> connectedNodes)
Sets list of available nodes in cluster environment
|
getDefaults, getStreamError, isEnabled, setProperties
protected List<tigase.xmpp.BareJID> connectedNodes
public tigase.xmpp.BareJID findHostForJID(tigase.xmpp.BareJID jid, tigase.xmpp.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<tigase.xmpp.BareJID> connectedNodes)
SeeOtherHostIfc
setNodes
in interface SeeOtherHostIfc
setNodes
in class SeeOtherHost
connectedNodes
- current list of nodesCopyright © 2014 "Tigase, Inc.". All rights reserved.