Class FrontEndDispatcher

    • Field Detail

      • myMediatorClass

        protected String myMediatorClass
      • connectionTimeout

        protected long connectionTimeout
      • bindHost

        protected String bindHost
      • bindPort

        protected int bindPort
      • refreshingConnection

        public boolean refreshingConnection
    • Constructor Detail

      • FrontEndDispatcher

        public FrontEndDispatcher()
    • Method Detail

      • getBackEnd

        public BackEnd getBackEnd​(FrontEnd fe,
                                  Properties props)
                           throws IMTPException
        Connect to a remote BackEnd and return a stub to communicate with it
        Specified by:
        getBackEnd in interface FEConnectionManager
        Parameters:
        fe - The FrontEnd container that is requesting the connection setup.
        props - Additional (implementation dependent) connection configuration properties.
        Returns:
        A stub of the remote BackEnd.
        Throws:
        IMTPException
      • dispatch

        public byte[] dispatch​(byte[] payload,
                               boolean flush,
                               int oldSessionId)
                        throws ICPException
        Deliver a serialized command to the BackEnd.
        Specified by:
        dispatch in interface Dispatcher
        Returns:
        The serialized response
        Throws:
        ICPException
      • run

        public void run()
        Specified by:
        run in interface Runnable
      • handleReconnection

        protected void handleReconnection​(Connection c)
      • doTimeOut

        public void doTimeOut​(Timer t)
        Mutual exclusion with updateKeepAlive(), updateConnectionDropDown() and clearTimers()
        Specified by:
        doTimeOut in interface TimerListener
      • prepareDropDownRequest

        protected JICPPacket prepareDropDownRequest()