|
||||||||||
| 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
| Field Summary |
|---|
| 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, 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 | |
|---|---|
boolean |
addOutStreamClosed(Packet packet,
BoshSession bs)
Method description |
boolean |
addOutStreamOpen(Packet packet,
BoshSession bs)
|
void |
cancelTask(TimerTask tt)
Method description |
protected tigase.xmpp.JID |
changeDataReceiver(Packet packet,
tigase.xmpp.JID newAddress,
String command_sessionId,
XMPPIOService<Object> serv)
|
protected BoshSession |
getBoshSession(tigase.xmpp.JID jid)
|
Map<String,Object> |
getDefaults(Map<String,Object> params)
Method description |
protected int[] |
getDefPlainPorts()
|
protected int[] |
getDefSSLPorts()
|
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)
|
void |
getStatistics(StatisticsList list)
Generates the component statistics. |
protected BoshIOService |
getXMPPIOServiceInstance()
|
protected ReceiverTimeoutHandler |
newStartedHandler()
|
protected void |
processCommand(Packet packet)
|
void |
processPacket(Packet packet)
Method description |
Queue<Packet> |
processSocketData(XMPPIOService<Object> srv)
Method description |
TimerTask |
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)
|
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, newStoppedHandler, reconnectionFailed, serviceStarted, serviceStopped, start, stop, tlsHandshakeCompleted, xmppStreamClosed, xmppStreamOpened |
| Methods inherited from class tigase.server.ConnectionManager |
|---|
addWaitingTask, countIOServices, doForAllServices, everyMinute, getParamsForPort, getServiceId, getServiceId, getUniqueId, getXMPPIOService, getXMPPIOService, initBindings, initializationCompleted, isHighThroughput, packetsReady, processingInThreads, processingOutThreads, release, setName, writePacketsToSocket, writePacketToSocket, writePacketToSocket, writeRawData |
| Methods inherited from class tigase.server.AbstractMessageReceiver |
|---|
addOutPacket, addOutPacketNB, addOutPackets, addOutPacketWithTimeout, addPacket, addPacketNB, addPackets, addRegexRouting, addTimerTask, addTimerTask, clearRegexRoutings, everyHour, everySecond, getRegexRoutings, isInRegexRoutings, newPacketId, processingThreads, processOutPacket, processPacket, removeRegexRouting, 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 |
| Constructor Detail |
|---|
public BoshConnectionManager()
| Method Detail |
|---|
public void processPacket(Packet packet)
ClientConnectionManager
processPacket in class ClientConnectionManagerpacket - is an instance of the Packet class passed for
processing.
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 cancelTask(TimerTask tt)
cancelTask in interface BoshSessionTaskHandlertt - 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 ClientConnectionManagerpublic Queue<Packet> processSocketData(XMPPIOService<Object> srv)
processSocketData in class ClientConnectionManagersrv -
public TimerTask scheduleTask(BoshSession bs,
long delay)
scheduleTask in interface BoshSessionTaskHandlerbs - delay -
public void serviceStarted(BoshIOService service)
service - public void serviceStopped(BoshIOService service)
service - public void setProperties(Map<String,Object> props)
setProperties in interface ConfigurablesetProperties in class ClientConnectionManagerprops -
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 tigase.xmpp.BareJID getSeeOtherHostForJID(tigase.xmpp.BareJID fromJID)
getSeeOtherHostForJID in interface BoshSessionTaskHandler
protected tigase.xmpp.JID changeDataReceiver(Packet packet,
tigase.xmpp.JID newAddress,
String command_sessionId,
XMPPIOService<Object> serv)
changeDataReceiver in class ClientConnectionManagerprotected BoshSession getBoshSession(tigase.xmpp.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 ClientConnectionManagerpublic void getStatistics(StatisticsList list)
ConnectionManager
getStatistics in interface StatisticsContainergetStatistics in class ConnectionManager<XMPPIOService<Object>>list - is a collection to put the component statistics in.protected ReceiverTimeoutHandler newStartedHandler()
newStartedHandler in class ClientConnectionManagerprotected void processCommand(Packet packet)
processCommand in class ClientConnectionManagerprotected boolean writePacketToSocket(Packet packet)
writePacketToSocket in class ConnectionManager<XMPPIOService<Object>>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||