Package tigase.server.xmppclient
Class StreamErrorCounterIOProcessor
- java.lang.Object
-
- tigase.server.xmppclient.StreamErrorCounterIOProcessor
-
- All Implemented Interfaces:
XMPPIOProcessor
@Bean(name="stream-error-counter", parent=ClientConnectionManager.class, active=false) public class StreamErrorCounterIOProcessor extends java.lang.Object implements XMPPIOProcessor
- Author:
- andrzej
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StreamErrorCounterIOProcessor.ErrorStatisticsHolder
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ID
-
Constructor Summary
Constructors Constructor Description StreamErrorCounterIOProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getId()
Returns identifier of processorvoid
getStatistics(StatisticsList list)
Returns statistics generated by this processorvoid
packetsSent(XMPPIOService service)
Method is called when all waiting data was written to socket.void
processCommand(XMPPIOService service, Packet packet)
Process command execution which may be sent from other component and should be processed by processorboolean
processIncoming(XMPPIOService service, Packet packet)
Process packets read from socket as they are sent to SessionManager.boolean
processOutgoing(XMPPIOService service, Packet packet)
Process outgoing packets as they are added to XMPPIOService outgoing packets queue.boolean
serviceStopped(XMPPIOService service, boolean streamClosed)
Method called when XMPPIOService is closed.void
setConnectionManager(ConnectionManager connectionManager)
void
streamError(XMPPIOService service, StreamError streamError)
Method called when XMPP stream error is about to be sentElement[]
supStreamFeatures(XMPPIOService service)
Returns array of features added by this processor
-
-
-
Field Detail
-
ID
public static final java.lang.String ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
setConnectionManager
public void setConnectionManager(ConnectionManager connectionManager)
-
getId
public java.lang.String getId()
Description copied from interface:XMPPIOProcessor
Returns identifier of processor- Specified by:
getId
in interfaceXMPPIOProcessor
-
getStatistics
public void getStatistics(StatisticsList list)
Description copied from interface:XMPPIOProcessor
Returns statistics generated by this processor- Specified by:
getStatistics
in interfaceXMPPIOProcessor
-
supStreamFeatures
public Element[] supStreamFeatures(XMPPIOService service)
Description copied from interface:XMPPIOProcessor
Returns array of features added by this processor- Specified by:
supStreamFeatures
in interfaceXMPPIOProcessor
-
processIncoming
public boolean processIncoming(XMPPIOService service, Packet packet)
Description copied from interface:XMPPIOProcessor
Process packets read from socket as they are sent to SessionManager.- Specified by:
processIncoming
in interfaceXMPPIOProcessor
- Returns:
- true if packet should not be forwarded
-
processOutgoing
public boolean processOutgoing(XMPPIOService service, Packet packet)
Description copied from interface:XMPPIOProcessor
Process outgoing packets as they are added to XMPPIOService outgoing packets queue.- Specified by:
processOutgoing
in interfaceXMPPIOProcessor
- Returns:
- true if packet should be removed
-
packetsSent
public void packetsSent(XMPPIOService service) throws java.io.IOException
Description copied from interface:XMPPIOProcessor
Method is called when all waiting data was written to socket.- Specified by:
packetsSent
in interfaceXMPPIOProcessor
- Throws:
java.io.IOException
-
processCommand
public void processCommand(XMPPIOService service, Packet packet)
Description copied from interface:XMPPIOProcessor
Process command execution which may be sent from other component and should be processed by processor- Specified by:
processCommand
in interfaceXMPPIOProcessor
-
serviceStopped
public boolean serviceStopped(XMPPIOService service, boolean streamClosed)
Description copied from interface:XMPPIOProcessor
Method called when XMPPIOService is closed.- Specified by:
serviceStopped
in interfaceXMPPIOProcessor
- Returns:
- true if connecton manager should not be notified about stopping of this service
-
streamError
public void streamError(XMPPIOService service, StreamError streamError)
Description copied from interface:XMPPIOProcessor
Method called when XMPP stream error is about to be sent- Specified by:
streamError
in interfaceXMPPIOProcessor
-
-