|
||||||||||
| 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<java.util.List<ComponentConnection>>>
tigase.server.ext.ComponentProtocol
public class ComponentProtocol
Created: Sep 30, 2009 8:28:13 PM
| Field Summary | |
|---|---|
static java.lang.String |
AUTHENTICATION_TIMEOUT_PROP_KEY
Field description |
static java.lang.String |
CLOSE_ON_SEQUENCE_ERROR_PROP_KEY
Field description |
static java.lang.String |
EXTCOMP_BIND_HOSTNAMES
Field description |
static java.lang.String |
EXTCOMP_REPO_CLASS_PROP_KEY
Field description |
static java.lang.String |
EXTCOMP_REPO_CLASS_PROP_VAL
Field description |
static java.lang.String |
EXTCOMP_REPO_CLASS_PROPERTY
Field description |
static java.lang.String |
IDENTITY_TYPE_KEY
Field description |
static java.lang.String |
IDENTITY_TYPE_VAL
Field description |
static java.lang.String |
MAX_AUTH_ATTEMPTS_PROP_KEY
Field description |
static java.lang.String |
PACK_ROUTED_KEY
Field description |
boolean |
PACK_ROUTED_VAL
Field description |
static java.lang.String |
RETURN_SERVICE_DISCO_KEY
Field description |
static boolean |
RETURN_SERVICE_DISCO_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, maxQueueSize, MINUTE, OUTGOING_FILTERS_PROP_KEY, OUTGOING_FILTERS_PROP_VAL, SECOND |
| Fields inherited from class tigase.server.BasicComponent |
|---|
admins, SCRIPTS_DIR_PROP_DEF, SCRIPTS_DIR_PROP_KEY, vHostManager |
| Fields inherited from interface tigase.server.ext.ComponentProtocolHandler |
|---|
EXTCOMP_BIND_HOSTNAMES_PROP_KEY, REPO_ITEM_KEY |
| Fields inherited from interface tigase.disco.XMPPService |
|---|
CMD_FEATURES, DEF_FEATURES, INFO_XMLNS, ITEMS_XMLNS |
| Constructor Summary | |
|---|---|
ComponentProtocol()
Constructs ... |
|
| Method Summary | |
|---|---|
void |
authenticated(XMPPIOService<java.util.List<ComponentConnection>> serv)
Method description |
void |
authenticationFailed(XMPPIOService<java.util.List<ComponentConnection>> serv,
Packet packet)
Method description |
void |
bindHostname(java.lang.String hostname,
XMPPIOService<java.util.List<ComponentConnection>> serv)
Method description |
CompRepoItem |
getCompRepoItem(java.lang.String hostname)
Method description |
java.util.Map<java.lang.String,java.lang.Object> |
getDefaults(java.util.Map<java.lang.String,java.lang.Object> params)
Method description |
java.lang.String |
getDiscoCategoryType()
Method description |
java.lang.String |
getDiscoDescription()
Method description |
protected long |
getMaxInactiveTime()
|
protected java.lang.Integer |
getMaxQueueSize(int def)
|
ExtProcessor |
getProcessor(java.lang.String key)
Method description |
void |
getStatistics(StatisticsList list)
Method description |
java.util.List<tigase.xml.Element> |
getStreamFeatures(XMPPIOService<java.util.List<ComponentConnection>> serv)
Method description |
StreamOpenHandler |
getStreamOpenHandler(java.lang.String xmlns)
Method description |
protected XMPPIOService<java.util.List<ComponentConnection>> |
getXMPPIOService(Packet p)
|
protected XMPPIOService<java.util.List<ComponentConnection>> |
getXMPPIOServiceInstance()
|
int |
hashCodeForPacket(Packet packet)
This method can be overwritten in extending classes to get a different packets distribution to different threads. |
void |
initBindings(javax.script.Bindings binds)
Method description |
protected boolean |
isHighThroughput()
|
int |
processingThreads()
Method description |
java.util.Queue<Packet> |
processSocketData(XMPPIOService<java.util.List<ComponentConnection>> serv)
Method description |
void |
serviceStarted(XMPPIOService<java.util.List<ComponentConnection>> serv)
Method description |
boolean |
serviceStopped(XMPPIOService<java.util.List<ComponentConnection>> service)
Method description |
void |
setProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
Method description |
void |
unbindHostname(java.lang.String hostname,
XMPPIOService<java.util.List<ComponentConnection>> serv)
Method description |
void |
xmppStreamClosed(XMPPIOService<java.util.List<ComponentConnection>> serv)
Method description |
java.lang.String |
xmppStreamOpened(XMPPIOService<java.util.List<ComponentConnection>> serv,
java.util.Map<java.lang.String,java.lang.String> attribs)
Method description |
| Methods inherited from class tigase.server.ConnectionManager |
|---|
addWaitingTask, countIOServices, doForAllServices, getDefPlainPorts, getDefSSLPorts, getParamsForPort, getServiceId, getServiceId, getUniqueId, getXMPPIOService, initializationCompleted, packetsReady, processPacket, release, setName, start, writePacketsToSocket, writePacketToSocket, writePacketToSocket, writePacketToSocket, writeRawData |
| Methods inherited from class tigase.server.AbstractMessageReceiver |
|---|
addOutPacket, addOutPacketNB, addOutPackets, addOutPacketWithTimeout, addPacket, addPacketNB, addPackets, addRegexRouting, addTimerTask, addTimerTask, clearRegexRoutings, everyHour, everyMinute, everySecond, getRegexRoutings, isInRegexRoutings, newPacketId, processPacket, removeRegexRouting, setMaxQueueSize, setParent, 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.ext.ComponentProtocolHandler |
|---|
newPacketId |
| Methods inherited from interface tigase.server.MessageReceiver |
|---|
getDefHostName |
| Methods inherited from interface tigase.server.ServerComponent |
|---|
getComponentId, getName |
| Field Detail |
|---|
public static final java.lang.String EXTCOMP_REPO_CLASS_PROPERTY
public static final java.lang.String EXTCOMP_REPO_CLASS_PROP_KEY
public static final java.lang.String EXTCOMP_REPO_CLASS_PROP_VAL
public static final java.lang.String EXTCOMP_BIND_HOSTNAMES
public static final java.lang.String PACK_ROUTED_KEY
public static final java.lang.String RETURN_SERVICE_DISCO_KEY
public static final boolean RETURN_SERVICE_DISCO_VAL
public static final java.lang.String IDENTITY_TYPE_KEY
public static final java.lang.String IDENTITY_TYPE_VAL
public static final java.lang.String CLOSE_ON_SEQUENCE_ERROR_PROP_KEY
public static final java.lang.String MAX_AUTH_ATTEMPTS_PROP_KEY
public static final java.lang.String AUTHENTICATION_TIMEOUT_PROP_KEY
public boolean PACK_ROUTED_VAL
| Constructor Detail |
|---|
public ComponentProtocol()
| Method Detail |
|---|
public void authenticated(XMPPIOService<java.util.List<ComponentConnection>> serv)
authenticated in interface ComponentProtocolHandlerserv -
public void authenticationFailed(XMPPIOService<java.util.List<ComponentConnection>> serv,
Packet packet)
authenticationFailed in interface ComponentProtocolHandlerserv - packet -
public void bindHostname(java.lang.String hostname,
XMPPIOService<java.util.List<ComponentConnection>> serv)
bindHostname in interface ComponentProtocolHandlerhostname - serv - public CompRepoItem getCompRepoItem(java.lang.String hostname)
getCompRepoItem in interface ComponentProtocolHandlerhostname -
public java.util.Map<java.lang.String,java.lang.Object> getDefaults(java.util.Map<java.lang.String,java.lang.Object> params)
getDefaults in interface ConfigurablegetDefaults in class ConnectionManager<XMPPIOService<java.util.List<ComponentConnection>>>params -
public java.lang.String getDiscoCategoryType()
getDiscoCategoryType in class BasicComponentpublic java.lang.String getDiscoDescription()
getDiscoDescription in class BasicComponentpublic ExtProcessor getProcessor(java.lang.String key)
getProcessor in interface ComponentProtocolHandlerkey -
public void getStatistics(StatisticsList list)
getStatistics in interface StatisticsContainergetStatistics in class ConnectionManager<XMPPIOService<java.util.List<ComponentConnection>>>list - public java.util.List<tigase.xml.Element> getStreamFeatures(XMPPIOService<java.util.List<ComponentConnection>> serv)
getStreamFeatures in interface ComponentProtocolHandlerserv -
public StreamOpenHandler getStreamOpenHandler(java.lang.String xmlns)
getStreamOpenHandler in interface ComponentProtocolHandlerxmlns -
public int hashCodeForPacket(Packet packet)
hashCodeForPacket in class AbstractMessageReceiverpacket -
public void initBindings(javax.script.Bindings binds)
initBindings in class BasicComponentbinds - public java.util.Queue<Packet> processSocketData(XMPPIOService<java.util.List<ComponentConnection>> serv)
processSocketData in class ConnectionManager<XMPPIOService<java.util.List<ComponentConnection>>>serv -
public int processingThreads()
processingThreads in class AbstractMessageReceiverpublic void serviceStarted(XMPPIOService<java.util.List<ComponentConnection>> serv)
serviceStarted in class ConnectionManager<XMPPIOService<java.util.List<ComponentConnection>>>serv - public boolean serviceStopped(XMPPIOService<java.util.List<ComponentConnection>> service)
serviceStopped in interface IOServiceListener<XMPPIOService<java.util.List<ComponentConnection>>>serviceStopped in class ConnectionManager<XMPPIOService<java.util.List<ComponentConnection>>>service -
public void setProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
setProperties in interface ConfigurablesetProperties in class ConnectionManager<XMPPIOService<java.util.List<ComponentConnection>>>properties -
public void unbindHostname(java.lang.String hostname,
XMPPIOService<java.util.List<ComponentConnection>> serv)
unbindHostname in interface ComponentProtocolHandlerhostname - serv - public void xmppStreamClosed(XMPPIOService<java.util.List<ComponentConnection>> serv)
xmppStreamClosed in interface XMPPIOServiceListener<XMPPIOService<java.util.List<ComponentConnection>>>serv -
public java.lang.String xmppStreamOpened(XMPPIOService<java.util.List<ComponentConnection>> serv,
java.util.Map<java.lang.String,java.lang.String> attribs)
xmppStreamOpened in interface XMPPIOServiceListener<XMPPIOService<java.util.List<ComponentConnection>>>serv - attribs -
protected long getMaxInactiveTime()
getMaxInactiveTime in class ConnectionManager<XMPPIOService<java.util.List<ComponentConnection>>>protected java.lang.Integer getMaxQueueSize(int def)
getMaxQueueSize in class AbstractMessageReceiverprotected XMPPIOService<java.util.List<ComponentConnection>> getXMPPIOService(Packet p)
getXMPPIOService in class ConnectionManager<XMPPIOService<java.util.List<ComponentConnection>>>protected XMPPIOService<java.util.List<ComponentConnection>> getXMPPIOServiceInstance()
getXMPPIOServiceInstance in class ConnectionManager<XMPPIOService<java.util.List<ComponentConnection>>>protected boolean isHighThroughput()
isHighThroughput in class ConnectionManager<XMPPIOService<java.util.List<ComponentConnection>>>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||