public class SeeOtherHostDualIP extends SeeOtherHostHashed implements EventHandler
| Modifier and Type | Class and Description |
|---|---|
static interface |
SeeOtherHostDualIP.DualIPRepository |
SeeOtherHostIfc.Phase| Modifier and Type | Field and Description |
|---|---|
protected String |
get_host_DB_url |
static String |
SEE_OTHER_HOST_DATA_SOURCE_KEY |
static String |
SEE_OTHER_HOST_DATA_SOURCE_VALUE |
static String |
SEE_OTHER_HOST_DB_URL_KEY |
static String |
SEE_OTHER_HOST_FALLBACK_REDIRECTION_KEY |
connectedNodesdefaultHost, REDIRECTION_ENABLED, vHostManagerCM_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 |
|---|
SeeOtherHostDualIP() |
| Modifier and Type | Method and Description |
|---|---|
BareJID |
findHostForJID(BareJID jid,
BareJID host)
Finds an appropriate host for a given JID
|
void |
getDefaults(Map<String,Object> defs,
Map<String,Object> params) |
boolean |
isRedirectionRequired(BareJID defaultHost,
BareJID redirectionHost)
Method validates whether a redirection for a particular hostname and
resulting redirection hastname is required
|
void |
onEvent(String name,
String xmlns,
Element event) |
protected void |
reloadRedirection() |
void |
setNodes(List<JID> connectedNodes)
Sets list of available nodes in cluster environment
|
void |
setProperties(Map<String,Object> props) |
isEnabledclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetStreamErrorpublic static final String SEE_OTHER_HOST_FALLBACK_REDIRECTION_KEY
public static final String SEE_OTHER_HOST_DATA_SOURCE_KEY
public static final String SEE_OTHER_HOST_DATA_SOURCE_VALUE
public static final String SEE_OTHER_HOST_DB_URL_KEY
protected String get_host_DB_url
public BareJID findHostForJID(BareJID jid, BareJID host)
SeeOtherHostIfcfindHostForJID in interface SeeOtherHostIfcfindHostForJID in class SeeOtherHostHashedjid - 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 onEvent(String name, String xmlns, Element event)
onEvent in interface EventHandlerpublic void setNodes(List<JID> connectedNodes)
SeeOtherHostIfcsetNodes in interface SeeOtherHostIfcsetNodes in class SeeOtherHostHashedconnectedNodes - current list of nodespublic void getDefaults(Map<String,Object> defs, Map<String,Object> params)
getDefaults in interface SeeOtherHostIfcgetDefaults in class SeeOtherHostpublic void setProperties(Map<String,Object> props)
setProperties in interface SeeOtherHostIfcsetProperties in class SeeOtherHostpublic boolean isRedirectionRequired(BareJID defaultHost, BareJID redirectionHost)
SeeOtherHostIfcisRedirectionRequired in interface SeeOtherHostIfcdefaultHost - default hostname of the particular machineredirectionHost - destination hostnametrue if the redirection is required, otherwise
falseprotected void reloadRedirection()
Copyright © 2017 "Tigase, Inc.". All rights reserved.