|
||||||||||
| 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<XMPPIOService<Object>>
tigase.server.xmppclient.ClientConnectionManager
tigase.server.bosh.BoshConnectionManager
public class BoshConnectionManager
Describe class BoshConnectionManager here. Created: Sat Jun 2 12:24:29 2007
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class tigase.server.ConnectionManager |
|---|
ConnectionManager.LIMIT_ACTION |
| Field Summary | |
|---|---|
protected Map<UUID,BoshSession> |
sessions
Field description |
| Fields inherited from class tigase.server.xmppclient.ClientConnectionManager |
|---|
routings, see_other_host_strategy |
| 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, SCHEDULER_THREADS_PROP_KEY, 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 | |
|---|---|
BoshConnectionManager()
|
|
| Method Summary | |
|---|---|
protected void |
addOutPackets(Queue<Packet> out_results,
BoshSession bs)
Method description |
boolean |
addOutStreamClosed(Packet packet,
BoshSession bs)
Method description |
boolean |
addOutStreamOpen(Packet packet,
BoshSession bs)
|
void |
cancelSendQueueTask(BoshSendQueueTask tt)
Method description |
void |
cancelTask(BoshTask tt)
Method description |
protected tigase.xmpp.JID |
changeDataReceiver(Packet packet,
tigase.xmpp.JID newAddress,
String command_sessionId,
XMPPIOService<Object> serv)
Method description |
protected BoshSession |
getBoshSession(tigase.xmpp.JID jid)
Method description |
Map<String,Object> |
getDefaults(Map<String,Object> params)
Method description |
protected int[] |
getDefPlainPorts()
Method description |
protected int[] |
getDefSSLPorts()
Method description |
String |
getDiscoCategoryType()
Method description |
String |
getDiscoDescription()
Method description |
protected long |
getMaxInactiveTime()
Method getMaxInactiveTime returns max keep-alive time for
inactive connection. |
tigase.xmpp.BareJID |
getSeeOtherHostForJID(tigase.xmpp.BareJID fromJID,
SeeOtherHostIfc.Phase ph)
Method description |
void |
getStatistics(StatisticsList list)
Method description |
protected BoshIOService |
getXMPPIOServiceInstance()
Method description |
protected ReceiverTimeoutHandler |
newStartedHandler()
Method description |
protected void |
processCommand(Packet packet)
Method description |
void |
processPacket(Packet packet)
Method description |
Queue<Packet> |
processSocketData(XMPPIOService<Object> srv)
Method description |
BoshSendQueueTask |
scheduleSendQueueTask(BoshSession bs,
long delay)
Method description |
BoshTask |
scheduleTask(BoshSession bs,
long delay)
Method description |
void |
serviceStarted(BoshIOService service)
Method description |
void |
serviceStopped(BoshIOService service)
Method description |
void |
setProperties(Map<String,Object> props)
Method description |
protected boolean |
writePacketToSocket(Packet packet)
Method description |
void |
writeRawData(BoshIOService ios,
String data)
Method description |
void |
xmppStreamClosed(BoshIOService serv)
Method description |
String |
xmppStreamOpened(BoshIOService serv,
Map<String,String> attribs)
Method description |
| Methods inherited from class tigase.server.xmppclient.ClientConnectionManager |
|---|
getMaxQueueSize, getSeeOtherHostInstance, hashCodeForPacket, isTlsWantClientAuthEnabled, newStoppedHandler, reconnectionFailed, serviceStarted, serviceStopped, start, stop, tlsHandshakeCompleted, xmppStreamClosed, xmppStreamOpened |
| Methods inherited from class tigase.server.AbstractMessageReceiver |
|---|
addOutPacket, addOutPacketNB, addOutPackets, addOutPacketWithTimeout, addPacket, addPacketNB, addPackets, addRegexRouting, addTimerTask, addTimerTask, addTimerTask, addTimerTask, clearRegexRoutings, everyHour, everySecond, getRegexRoutings, isInRegexRoutings, newPacketId, processingThreads, processOutPacket, processPacket, removeRegexRouting, schedulerThreads, setMaxQueueSize, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface tigase.server.MessageReceiver |
|---|
getDefHostName |
| Methods inherited from interface tigase.server.ServerComponent |
|---|
getComponentId, getName, isInitializationComplete |
| Field Detail |
|---|
protected final Map<UUID,BoshSession> sessions
| Constructor Detail |
|---|
public BoshConnectionManager()
| Method Detail |
|---|
public boolean addOutStreamClosed(Packet packet,
BoshSession bs)
addOutStreamClosed in interface BoshSessionTaskHandlerpacket - bs -
public boolean addOutStreamOpen(Packet packet,
BoshSession bs)
addOutStreamOpen in interface BoshSessionTaskHandlerpacket - bs -
public void cancelSendQueueTask(BoshSendQueueTask tt)
cancelSendQueueTask in interface BoshSessionTaskHandlertt - public void cancelTask(BoshTask tt)
cancelTask in interface BoshSessionTaskHandlertt - public void processPacket(Packet packet)
processPacket in class ClientConnectionManagerpacket - public Queue<Packet> processSocketData(XMPPIOService<Object> srv)
processSocketData in class ClientConnectionManagersrv -
public BoshSendQueueTask scheduleSendQueueTask(BoshSession bs,
long delay)
scheduleSendQueueTask in interface BoshSessionTaskHandlerbs - delay -
public BoshTask scheduleTask(BoshSession bs,
long delay)
scheduleTask in interface BoshSessionTaskHandlerbs - delay -
public void serviceStarted(BoshIOService service)
service - public void serviceStopped(BoshIOService service)
service -
public void writeRawData(BoshIOService ios,
String data)
writeRawData in interface BoshSessionTaskHandlerios - data - public void xmppStreamClosed(BoshIOService serv)
serv -
public String xmppStreamOpened(BoshIOService serv,
Map<String,String> attribs)
serv - attribs -
public Map<String,Object> getDefaults(Map<String,Object> params)
getDefaults in interface ConfigurablegetDefaults in class ClientConnectionManagerparams -
public String getDiscoCategoryType()
getDiscoCategoryType in class ClientConnectionManagerpublic String getDiscoDescription()
getDiscoDescription in class ClientConnectionManager
public tigase.xmpp.BareJID getSeeOtherHostForJID(tigase.xmpp.BareJID fromJID,
SeeOtherHostIfc.Phase ph)
getSeeOtherHostForJID in interface BoshSessionTaskHandlerfromJID - ph -
public void getStatistics(StatisticsList list)
getStatistics in interface StatisticsContainergetStatistics in class ConnectionManager<XMPPIOService<Object>>list - public void setProperties(Map<String,Object> props)
setProperties in interface ConfigurablesetProperties in class ClientConnectionManagerprops -
protected void addOutPackets(Queue<Packet> out_results,
BoshSession bs)
out_results - bs -
protected tigase.xmpp.JID changeDataReceiver(Packet packet,
tigase.xmpp.JID newAddress,
String command_sessionId,
XMPPIOService<Object> serv)
changeDataReceiver in class ClientConnectionManagerpacket - newAddress - command_sessionId - serv -
protected ReceiverTimeoutHandler newStartedHandler()
newStartedHandler in class ClientConnectionManagerprotected void processCommand(Packet packet)
processCommand in class ClientConnectionManagerpacket - protected boolean writePacketToSocket(Packet packet)
writePacketToSocket in class ConnectionManager<XMPPIOService<Object>>packet -
protected BoshSession getBoshSession(tigase.xmpp.JID jid)
jid -
protected int[] getDefPlainPorts()
getDefPlainPorts in class ClientConnectionManagerprotected int[] getDefSSLPorts()
getDefSSLPorts in class ClientConnectionManagerprotected long getMaxInactiveTime()
getMaxInactiveTime returns max keep-alive time for
inactive connection. For Bosh it does not make sense to keep the idle
connection longer than 10 minutes.
getMaxInactiveTime in class ClientConnectionManagerlong valueprotected BoshIOService getXMPPIOServiceInstance()
getXMPPIOServiceInstance in class ClientConnectionManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||