|
||||||||||
| 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.xmppcomponent.ComponentConnectionManager
public class ComponentConnectionManager
Class ComponentConnectionManager Created: Tue Nov 22 07:07:11 2005
| Field Summary | |
|---|---|
static String |
IDENTITY_TYPE_KEY
Field description |
static String |
IDENTITY_TYPE_VAL
Field description |
static String |
PACK_ROUTED_KEY
Field description |
boolean |
PACK_ROUTED_VAL
Field description |
String |
PORT_LOCAL_HOST_PROP_VAL
Field description |
String |
PORT_REMOTE_HOST_PROP_VAL
Field description |
static String |
PORT_ROUTING_TABLE_PROP_KEY
Field description |
String[] |
PORT_ROUTING_TABLE_PROP_VAL
Field description |
SocketType |
PORT_SOCKET_PROP_VAL
Field description |
ConnectionType |
PORT_TYPE_PROP_VAL
Field description |
int[] |
PORTS
Field description |
static String |
RETURN_SERVICE_DISCO_KEY
Field description |
static boolean |
RETURN_SERVICE_DISCO_VAL
Field description |
static String |
SECRET_PROP_KEY
Field description |
String |
SECRET_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 | |
|---|---|
ComponentConnectionManager()
|
|
| Method Summary | |
|---|---|
Map<String,Object> |
getDefaults(Map<String,Object> params)
Method description |
protected int[] |
getDefPlainPorts()
|
List<tigase.xml.Element> |
getDiscoFeatures(tigase.xmpp.JID from)
Method description |
tigase.xml.Element |
getDiscoInfo(String node,
tigase.xmpp.JID jid,
tigase.xmpp.JID from)
Method description |
List<tigase.xml.Element> |
getDiscoItems(String node,
tigase.xmpp.JID jid,
tigase.xmpp.JID from)
Method description |
protected long |
getMaxInactiveTime()
Method getMaxInactiveTime returns max keep-alive time
for inactive connection. |
protected Map<String,Object> |
getParamsForPort(int port)
|
protected String |
getServiceId(Packet packet)
|
protected String |
getUniqueId(XMPPIOService<Object> serv)
|
protected XMPPIOService<Object> |
getXMPPIOServiceInstance()
|
void |
processPacket(Packet packet)
Method description |
Queue<Packet> |
processSocketData(XMPPIOService<Object> serv)
Method description |
void |
reconnectionFailed(Map<String,Object> port_props)
Method description |
void |
serviceStarted(XMPPIOService<Object> serv)
Method description |
boolean |
serviceStopped(XMPPIOService<Object> service)
Method description |
void |
setProperties(Map<String,Object> props)
Method description |
void |
tlsHandshakeCompleted(XMPPIOService<Object> service)
Method description |
void |
xmppStreamClosed(XMPPIOService<Object> serv)
Method description |
String |
xmppStreamOpened(XMPPIOService<Object> service,
Map<String,String> attribs)
Method description |
| Methods inherited from class tigase.server.AbstractMessageReceiver |
|---|
addOutPacket, addOutPacketNB, addOutPackets, addOutPacketWithTimeout, addPacket, addPacketNB, addPackets, addRegexRouting, addTimerTask, 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.ServerComponent |
|---|
getComponentId, getName, initializationCompleted, processPacket, release, setName |
| Methods inherited from interface tigase.server.MessageReceiver |
|---|
getDefHostName |
| Field Detail |
|---|
public static final String SECRET_PROP_KEY
public static final String PORT_ROUTING_TABLE_PROP_KEY
public static final String PACK_ROUTED_KEY
public static final String RETURN_SERVICE_DISCO_KEY
public static final boolean RETURN_SERVICE_DISCO_VAL
public static final String IDENTITY_TYPE_KEY
public static final String IDENTITY_TYPE_VAL
public int[] PORTS
public String PORT_LOCAL_HOST_PROP_VAL
public String PORT_REMOTE_HOST_PROP_VAL
public ConnectionType PORT_TYPE_PROP_VAL
public SocketType PORT_SOCKET_PROP_VAL
public String SECRET_PROP_VAL
public String[] PORT_ROUTING_TABLE_PROP_VAL
public boolean PACK_ROUTED_VAL
| Constructor Detail |
|---|
public ComponentConnectionManager()
| Method Detail |
|---|
public Map<String,Object> getDefaults(Map<String,Object> params)
getDefaults in interface ConfigurablegetDefaults in class ConnectionManager<XMPPIOService<Object>>params -
public List<tigase.xml.Element> getDiscoFeatures(tigase.xmpp.JID from)
getDiscoFeatures in interface XMPPServicegetDiscoFeatures in class BasicComponentfrom -
public tigase.xml.Element getDiscoInfo(String node,
tigase.xmpp.JID jid,
tigase.xmpp.JID from)
getDiscoInfo in interface XMPPServicegetDiscoInfo in class BasicComponentnode - jid - from -
public List<tigase.xml.Element> getDiscoItems(String node,
tigase.xmpp.JID jid,
tigase.xmpp.JID from)
getDiscoItems in interface XMPPServicegetDiscoItems in class BasicComponentnode - jid - from -
public void processPacket(Packet packet)
processPacket in class ConnectionManager<XMPPIOService<Object>>packet - public Queue<Packet> processSocketData(XMPPIOService<Object> serv)
processSocketData in class ConnectionManager<XMPPIOService<Object>>serv -
public void reconnectionFailed(Map<String,Object> port_props)
reconnectionFailed in class ConnectionManager<XMPPIOService<Object>>port_props - public void serviceStarted(XMPPIOService<Object> serv)
serviceStarted in class ConnectionManager<XMPPIOService<Object>>serv - public boolean serviceStopped(XMPPIOService<Object> service)
serviceStopped in interface IOServiceListener<XMPPIOService<Object>>serviceStopped in class ConnectionManager<XMPPIOService<Object>>service -
public void setProperties(Map<String,Object> props)
setProperties in interface ConfigurablesetProperties in class ConnectionManager<XMPPIOService<Object>>props - public void tlsHandshakeCompleted(XMPPIOService<Object> service)
tlsHandshakeCompleted in interface IOServiceListener<XMPPIOService<Object>>service - public void xmppStreamClosed(XMPPIOService<Object> serv)
xmppStreamClosed in interface XMPPIOServiceListener<XMPPIOService<Object>>serv -
public String xmppStreamOpened(XMPPIOService<Object> service,
Map<String,String> attribs)
xmppStreamOpened in interface XMPPIOServiceListener<XMPPIOService<Object>>service - attribs -
protected int[] getDefPlainPorts()
getDefPlainPorts in class ConnectionManager<XMPPIOService<Object>>protected long getMaxInactiveTime()
getMaxInactiveTime returns max keep-alive time
for inactive connection. we shoulnd not really close external component
connection at all, so let's say something like: 1000 days...
getMaxInactiveTime in class ConnectionManager<XMPPIOService<Object>>long valueprotected Map<String,Object> getParamsForPort(int port)
getParamsForPort in class ConnectionManager<XMPPIOService<Object>>protected String getServiceId(Packet packet)
getServiceId in class ConnectionManager<XMPPIOService<Object>>protected String getUniqueId(XMPPIOService<Object> serv)
getUniqueId in class ConnectionManager<XMPPIOService<Object>>protected XMPPIOService<Object> getXMPPIOServiceInstance()
getXMPPIOServiceInstance in class ConnectionManager<XMPPIOService<Object>>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||