Class BIBEDispatcher

    • Constructor Detail

      • BIBEDispatcher

        public BIBEDispatcher()
        Constructor declaration
    • Method Detail

      • kill

        public void kill()
        Shutdown self initiated or forced by the JICPServer this BackEndContainer is attached to.
        Specified by:
        kill in interface JICPMediator
      • handleJICPPacket

        public JICPPacket handleJICPPacket​(JICPPacket p,
                                           InetAddress addr,
                                           int port)
                                    throws ICPException
        This is called by the JICPServer when a JICP packet addressing this mediator as recipient-ID is received. In the case of the BIBEDispatcher this should never happen.
        Specified by:
        handleJICPPacket in interface JICPMediator
        Parameters:
        p - the JICPPacket
        addr - the address of the mediated entity
        port - the local port used by the mediated entity
        Throws:
        ICPException
      • handleIncomingConnection

        public boolean handleIncomingConnection​(Connection c,
                                                JICPPacket pkt,
                                                InetAddress addr,
                                                int port)
        This is called by the JICPServer when a JICP CREATE_MEDIATOR or CONNECT_MEDIATOR is received.
        Specified by:
        handleIncomingConnection in interface JICPMediator
        Parameters:
        c - the connection to the mediated entity
        pkt - the packet that was sent by the mediated entity when opening this connection
        addr - the address of the mediated entity
        port - the local port used by the mediated entity
        Returns:
        an indication to the JICPMediatorManager to keep the connection open.
      • tick

        public void tick​(long currentTime)
        Description copied from interface: JICPMediator
        This is periodically called by the JICPMediatorManager and should be used by a JICPMediator to evaluate the elapsed time without the need of a dedicated thread or timer.
        Specified by:
        tick in interface JICPMediator
      • getFrontEnd

        public FrontEnd getFrontEnd​(BackEnd be,
                                    Properties props)
                             throws IMTPException
        Return a stub of the remote FrontEnd that is connected to the local BackEnd.
        Specified by:
        getFrontEnd in interface BEConnectionManager
        Parameters:
        be - The local BackEnd
        props - Additional (implementation dependent) connection configuration properties.
        Returns:
        A stub of the remote FrontEnd.
        Throws:
        IMTPException
      • run

        public void run()
        Specified by:
        run in interface Runnable
        Overrides:
        run in class Thread