Package tigase.xmpp.impl
Class ErrorCounter
java.lang.Object
tigase.xmpp.XMPPProcessor
tigase.xmpp.impl.annotation.AnnotatedXMPPProcessor
tigase.xmpp.impl.ErrorCounter
- All Implemented Interfaces:
Comparable<XMPPImplIfc>,XMPPImplIfc,XMPPPacketFilterIfc,XMPPProcessorConcurrencyAwareIfc
@Bean(name="error-counter",
parent=SessionManager.class,
active=false)
public class ErrorCounter
extends AnnotatedXMPPProcessor
implements XMPPPacketFilterIfc
ErrorCounter class is implementation of XMPPProcessor responsible for counting packets with type=error which value is
added to Tigase XMPP Server statistics.
- Author:
- andrzej
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class tigase.xmpp.XMPPProcessor
ALL_NAMES, ALL_PATHS, cmpInfoFields inherited from interface tigase.xmpp.XMPPImplIfc
CLIENT_XMLNS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfilter(Packet packet, XMPPResourceConnection session, NonAuthUserRepository repo, Queue<Packet> results) voidgetStatistics(StatisticsList list) The method allows to retrieve plugin own statistics if it generates any.protected voidprocess(Packet packet, XMPPResourceConnection session) String[][]MethodsupElementNamePathsreturns an array of element names in form of a full path to the XML element for stanzas which can be processed by this plugin.Methods inherited from class tigase.xmpp.impl.annotation.AnnotatedXMPPProcessor
id, supDiscoFeatures, supNamespaces, supStreamFeatures, supTypesMethods inherited from class tigase.xmpp.XMPPProcessor
canHandle, compareTo, concurrentQueuesNo, getComponentInfo, getInstance, getQueueSize, getThreadsNo, init, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface tigase.xmpp.XMPPImplIfc
canHandle, concurrentQueuesNo, getComponentInfo, id, init, supDiscoFeatures, supNamespaces, supStreamFeatures, supTypes
-
Field Details
-
ID
- See Also:
-
-
Constructor Details
-
ErrorCounter
public ErrorCounter()
-
-
Method Details
-
getStatistics
Description copied from interface:XMPPImplIfcThe method allows to retrieve plugin own statistics if it generates any.- Specified by:
getStatisticsin interfaceXMPPImplIfc- Overrides:
getStatisticsin classXMPPProcessor- Parameters:
list- is a statistics collection to which plugins own metrics can be added.
-
supElementNamePaths
Description copied from interface:XMPPImplIfcMethodsupElementNamePathsreturns an array of element names in form of a full path to the XML element for stanzas which can be processed by this plugin. Each element name path corresponds to XMLNS returned in array bysupNamespaces()method. The element path itself is represented by a String array with each path element as a separate String.- Specified by:
supElementNamePathsin interfaceXMPPImplIfc- Overrides:
supElementNamePathsin classAnnotatedXMPPProcessor- Returns:
- a
String[][]value is an array for element paths for which the plugin offers processing capabilities. Each path is in form of a String array in order to reduce parsing overhead.
-
filter
public void filter(Packet packet, XMPPResourceConnection session, NonAuthUserRepository repo, Queue<Packet> results) - Specified by:
filterin interfaceXMPPPacketFilterIfc
-
process
-