Package jade.imtp.leap.nio
Interface NIOMediator
-
- All Superinterfaces:
JICPMediator
- All Known Implementing Classes:
BackEndDispatcher,NIOBEDispatcher,NIOHTTPBEDispatcher,SMSBEDispatcher
public interface NIOMediator extends JICPMediator
Base interface for all mediators that can be managed by asynchronous JICPMediatorManagers such as theBEManagementService.- Author:
- Giovanni Caire - Telecom Italia LAB S.p.A.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PropertiesgetProperties()Retrieve the startup Properties for this NIOMediator.voidhandleConnectionError(Connection c, Exception e)Notify this NIOMediator that an error occurred on one of the Connections it was using.JICPPackethandleJICPPacket(Connection c, JICPPacket p, InetAddress addr, int port)Overloaded version of the handleJICPPacket() method including theConnectionthe incoming JICPPacket was received from.-
Methods inherited from interface jade.imtp.leap.JICP.JICPMediator
getID, handleIncomingConnection, handleJICPPacket, init, kill, tick
-
-
-
-
Method Detail
-
handleJICPPacket
JICPPacket handleJICPPacket(Connection c, JICPPacket p, InetAddress addr, int port) throws ICPException
Overloaded version of the handleJICPPacket() method including theConnectionthe incoming JICPPacket was received from. This information is important since, unlike normal mediators, a NIOMediator may not read packets from connections on its own (the JICPMediatorManager does that in general).- Throws:
ICPException
-
handleConnectionError
void handleConnectionError(Connection c, Exception e)
Notify this NIOMediator that an error occurred on one of the Connections it was using. This information is important since, unlike normal mediators, a NIOMediator may not read packets from connections on its own (the JICPMediatorManager does that in general).
-
getProperties
Properties getProperties()
Retrieve the startup Properties for this NIOMediator.
-
-