|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttigase.server.BasicComponent
tigase.server.AbstractMessageReceiver
tigase.server.ConnectionManager<S2SIOService>
tigase.server.xmppserver.S2SConnectionManager
public class S2SConnectionManager
Created: Jun 14, 2010 11:59:38 AM
| Field Summary | |
|---|---|
static String |
CID_CONNECTIONS_BIND
|
protected static String |
DB_RESULT_EL_NAME
|
protected static String |
DB_VERIFY_EL_NAME
|
static String |
MAX_CONNECTION_INACTIVITY_TIME_PROP_KEY
Field description |
static long |
MAX_CONNECTION_INACTIVITY_TIME_PROP_VAL
Field description |
static String |
MAX_INCOMING_CONNECTIONS_PROP_KEY
Field description |
static int |
MAX_INCOMING_CONNECTIONS_PROP_VAL
Field description |
static String |
MAX_OUT_PER_IP_CONNECTIONS_PROP_KEY
Field description |
static int |
MAX_OUT_PER_IP_CONNECTIONS_PROP_VAL
Field description |
static String |
MAX_OUT_TOTAL_CONNECTIONS_PROP_KEY
Field description |
static int |
MAX_OUT_TOTAL_CONNECTIONS_PROP_VAL
Field description |
static String |
MAX_PACKET_WAITING_TIME_PROP_KEY
Field description |
static long |
MAX_PACKET_WAITING_TIME_PROP_VAL
Field description |
static String |
S2S_CONNECTION_SELECTOR_PROP_KEY
Field description |
static String |
S2S_CONNECTION_SELECTOR_PROP_VAL
Field description |
| Fields inherited from class tigase.server.AbstractMessageReceiver |
|---|
HOUR, INCOMING_FILTERS_PROP_KEY, INCOMING_FILTERS_PROP_VAL, MAX_QUEUE_SIZE_PROP_KEY, MAX_QUEUE_SIZE_PROP_VAL, maxInQueueSize, maxOutQueueSize, MINUTE, OUTGOING_FILTERS_PROP_KEY, OUTGOING_FILTERS_PROP_VAL, SECOND |
| Fields inherited from class tigase.server.BasicComponent |
|---|
admins, ALL_PROP_KEY, COMMAND_PROP_NODE, scriptCommands, SCRIPTS_DIR_PROP_DEF, SCRIPTS_DIR_PROP_KEY, vHostManager |
| Fields inherited from interface tigase.disco.XMPPService |
|---|
CMD_FEATURES, DEF_FEATURES, INFO_XMLNS, ITEMS_XMLNS |
| Constructor Summary | |
|---|---|
S2SConnectionManager()
|
|
| Method Summary | |
|---|---|
boolean |
addOutPacket(Packet packet)
Method description |
void |
addTimerTask(TimerTask task,
long delay,
TimeUnit unit)
Method description |
CIDConnections |
getCIDConnections(CID cid,
boolean createNew)
Method description |
Map<String,Object> |
getDefaults(Map<String,Object> params)
Method description |
protected int[] |
getDefPlainPorts()
|
String |
getDiscoCategoryType()
Method description |
String |
getDiscoDescription()
Method description |
String |
getLocalDBKey(CID connectionCid,
CID keyCid,
String key,
String key_sessionId,
String asking_sessionId)
|
protected long |
getMaxInactiveTime()
|
void |
getStatistics(StatisticsList list)
Method description |
List<tigase.xml.Element> |
getStreamFeatures(S2SIOService serv)
Method description |
protected S2SIOService |
getXMPPIOServiceInstance()
|
boolean |
handlesNonLocalDomains()
Method description |
int |
hashCodeForPacket(Packet packet)
Method description |
void |
initBindings(Bindings binds)
Method description |
void |
initNewConnection(Map<String,Object> port_props)
Method description |
protected boolean |
isHighThroughput()
|
void |
processPacket(Packet packet)
Method description |
Queue<Packet> |
processSocketData(S2SIOService serv)
Method description |
void |
reconnectionFailed(Map<String,Object> port_props)
Method description |
boolean |
sendVerifyResult(String elem_name,
CID connCid,
CID keyCid,
Boolean valid,
String key_sessionId,
String serv_sessionId,
String cdata,
boolean handshakingOnly)
Method description |
void |
serviceStarted(S2SIOService serv)
Method description |
boolean |
serviceStopped(S2SIOService serv)
Method description |
void |
setProperties(Map<String,Object> props)
Method description |
void |
tlsHandshakeCompleted(S2SIOService serv)
Method description |
void |
writeRawData(S2SIOService ios,
String data)
Method description |
void |
xmppStreamClosed(S2SIOService serv)
Method description |
String |
xmppStreamOpened(S2SIOService serv,
Map<String,String> attribs)
Method description |
| Methods inherited from class tigase.server.ConnectionManager |
|---|
addWaitingTask, countIOServices, doForAllServices, everyMinute, getDefSSLPorts, getParamsForPort, getServiceId, getServiceId, getUniqueId, getXMPPIOService, getXMPPIOService, initializationCompleted, packetsReady, processingInThreads, processingOutThreads, release, setName, writePacketsToSocket, writePacketToSocket, writePacketToSocket, writePacketToSocket |
| Methods inherited from class tigase.server.AbstractMessageReceiver |
|---|
addOutPacketNB, addOutPackets, addOutPacketWithTimeout, addPacket, addPacketNB, addPackets, addRegexRouting, addTimerTask, clearRegexRoutings, everyHour, everySecond, getMaxQueueSize, getRegexRoutings, isInRegexRoutings, newPacketId, processingThreads, processOutPacket, processPacket, removeRegexRouting, setMaxQueueSize, setParent, start, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface tigase.server.xmppserver.S2SConnectionHandlerIfc |
|---|
getDefHostName, writePacketsToSocket, writePacketToSocket |
| Methods inherited from interface tigase.server.MessageReceiver |
|---|
getDefHostName |
| Methods inherited from interface tigase.server.ServerComponent |
|---|
getComponentId, getName |
| Field Detail |
|---|
protected static final String DB_RESULT_EL_NAME
protected static final String DB_VERIFY_EL_NAME
public static final String MAX_PACKET_WAITING_TIME_PROP_KEY
public static final String MAX_CONNECTION_INACTIVITY_TIME_PROP_KEY
public static final String MAX_INCOMING_CONNECTIONS_PROP_KEY
public static final String MAX_OUT_TOTAL_CONNECTIONS_PROP_KEY
public static final String MAX_OUT_PER_IP_CONNECTIONS_PROP_KEY
public static final String S2S_CONNECTION_SELECTOR_PROP_KEY
public static final String S2S_CONNECTION_SELECTOR_PROP_VAL
public static final int MAX_INCOMING_CONNECTIONS_PROP_VAL
public static final int MAX_OUT_TOTAL_CONNECTIONS_PROP_VAL
public static final int MAX_OUT_PER_IP_CONNECTIONS_PROP_VAL
public static final long MAX_PACKET_WAITING_TIME_PROP_VAL
public static final long MAX_CONNECTION_INACTIVITY_TIME_PROP_VAL
public static final String CID_CONNECTIONS_BIND
| Constructor Detail |
|---|
public S2SConnectionManager()
| Method Detail |
|---|
public void initBindings(Bindings binds)
initBindings in class ConnectionManager<S2SIOService>binds - public boolean addOutPacket(Packet packet)
addOutPacket in interface S2SConnectionHandlerIfc<S2SIOService>addOutPacket in class AbstractMessageReceiverpacket -
public void addTimerTask(TimerTask task,
long delay,
TimeUnit unit)
addTimerTask in interface S2SConnectionHandlerIfc<S2SIOService>addTimerTask in class AbstractMessageReceivertask - delay - unit -
public CIDConnections getCIDConnections(CID cid,
boolean createNew)
throws NotLocalhostException,
LocalhostException
getCIDConnections in interface S2SConnectionHandlerIfc<S2SIOService>cid - createNew -
LocalhostException
NotLocalhostExceptionpublic Map<String,Object> getDefaults(Map<String,Object> params)
getDefaults in interface ConfigurablegetDefaults in class ConnectionManager<S2SIOService>params -
public String getDiscoCategoryType()
getDiscoCategoryType in class BasicComponentpublic String getDiscoDescription()
getDiscoDescription in class BasicComponent
public String getLocalDBKey(CID connectionCid,
CID keyCid,
String key,
String key_sessionId,
String asking_sessionId)
getLocalDBKey in interface S2SConnectionHandlerIfc<S2SIOService>connectionCid - keyCid - key - key_sessionId - asking_sessionId -
public void getStatistics(StatisticsList list)
getStatistics in interface StatisticsContainergetStatistics in class ConnectionManager<S2SIOService>list - public List<tigase.xml.Element> getStreamFeatures(S2SIOService serv)
getStreamFeatures in interface S2SConnectionHandlerIfc<S2SIOService>serv -
public boolean handlesNonLocalDomains()
handlesNonLocalDomains in interface VHostListenerhandlesNonLocalDomains in class BasicComponentpublic int hashCodeForPacket(Packet packet)
hashCodeForPacket in class ConnectionManager<S2SIOService>packet -
public void initNewConnection(Map<String,Object> port_props)
initNewConnection in interface S2SConnectionHandlerIfc<S2SIOService>port_props - public void processPacket(Packet packet)
processPacket in class ConnectionManager<S2SIOService>packet - public Queue<Packet> processSocketData(S2SIOService serv)
processSocketData in class ConnectionManager<S2SIOService>serv -
public void reconnectionFailed(Map<String,Object> port_props)
reconnectionFailed in class ConnectionManager<S2SIOService>port_props -
public boolean sendVerifyResult(String elem_name,
CID connCid,
CID keyCid,
Boolean valid,
String key_sessionId,
String serv_sessionId,
String cdata,
boolean handshakingOnly)
sendVerifyResult in interface S2SConnectionHandlerIfc<S2SIOService>elem_name - connCid - keyCid - valid - key_sessionId - serv_sessionId - cdata - handshakingOnly -
public void serviceStarted(S2SIOService serv)
serviceStarted in class ConnectionManager<S2SIOService>serv - public boolean serviceStopped(S2SIOService serv)
serviceStopped in interface IOServiceListener<S2SIOService>serviceStopped in class ConnectionManager<S2SIOService>serv -
public void setProperties(Map<String,Object> props)
setProperties in interface ConfigurablesetProperties in class ConnectionManager<S2SIOService>props - public void tlsHandshakeCompleted(S2SIOService serv)
tlsHandshakeCompleted in interface IOServiceListener<S2SIOService>serv -
public void writeRawData(S2SIOService ios,
String data)
writeRawData in interface S2SConnectionHandlerIfc<S2SIOService>writeRawData in class ConnectionManager<S2SIOService>ios - data - public void xmppStreamClosed(S2SIOService serv)
xmppStreamClosed in interface XMPPIOServiceListener<S2SIOService>serv -
public String xmppStreamOpened(S2SIOService serv,
Map<String,String> attribs)
xmppStreamOpened in interface XMPPIOServiceListener<S2SIOService>serv - attribs -
protected int[] getDefPlainPorts()
getDefPlainPorts in class ConnectionManager<S2SIOService>protected long getMaxInactiveTime()
getMaxInactiveTime in class ConnectionManager<S2SIOService>protected S2SIOService getXMPPIOServiceInstance()
getXMPPIOServiceInstance in class ConnectionManager<S2SIOService>protected boolean isHighThroughput()
isHighThroughput in class ConnectionManager<S2SIOService>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||