public class SeeOtherHostDB extends SeeOtherHostHashed
SeeOtherHostIfc.Phase| Modifier and Type | Field and Description |
|---|---|
static String |
DB_GET_ALL_DATA_DB_QUERY_KEY |
static String |
DEF_DB_GET_HOST_QUERY |
static String |
GET_ALL_QUERY_TIMEOUT_QUERY_KEY |
static String |
NODE_ID |
static String |
SEE_OTHER_HOST_DB_QUERY_KEY |
static String |
SEE_OTHER_HOST_DB_URL_KEY |
static String |
SEE_OTHER_HOST_TABLE |
static String |
SERIAL_ID |
static String |
USER_ID |
connectedNodesdefaultHostCM_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 |
|---|
SeeOtherHostDB() |
| 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 |
getDefaults(Map<String,Object> defs,
Map<String,Object> params) |
void |
initRepository(String conn_str,
Map<String,String> map) |
void |
setProperties(Map<String,Object> props) |
setNodesgetStreamError, isEnabledpublic static final String SEE_OTHER_HOST_TABLE
public static final String SEE_OTHER_HOST_DB_URL_KEY
public static final String SEE_OTHER_HOST_DB_QUERY_KEY
public static final String DB_GET_ALL_DATA_DB_QUERY_KEY
public static final String GET_ALL_QUERY_TIMEOUT_QUERY_KEY
public static final String SERIAL_ID
public static final String USER_ID
public static final String NODE_ID
public static final String DEF_DB_GET_HOST_QUERY
public tigase.xmpp.BareJID findHostForJID(tigase.xmpp.BareJID jid,
tigase.xmpp.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 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 void initRepository(String conn_str, Map<String,String> map) throws SQLException, ClassNotFoundException, IllegalAccessException, InstantiationException, DBInitException
Copyright © 2013 Tigase. All rights reserved.