Class HTTPFEDispatcher

    • Field Detail

      • myMediatorClass

        protected String myMediatorClass
    • Constructor Detail

      • HTTPFEDispatcher

        public HTTPFEDispatcher()
    • Method Detail

      • getBackEnd

        public BackEnd getBackEnd​(FrontEnd fe,
                                  Properties p)
                           throws IMTPException
        Create a BackEnd in the fixed network 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.
        p - Additional (implementation dependent) connection configuration properties.
        Returns:
        A stub of the remote BackEnd.
        Throws:
        IMTPException
      • shutdown

        public void shutdown()
        Make this HTTPFEDispatcher terminate. Note that when the BackEnd receives the termination notification (explicitly sent in case of a self-initiated shutdown or attached to the response to the EXIT command), it closes the input connection. The InputManager gets an exception and, since it has been killed, terminates.
        Specified by:
        shutdown in interface FEConnectionManager
      • dispatch

        public byte[] dispatch​(byte[] payload,
                               boolean flush,
                               int oldSessionId)
                        throws ICPException
        Dispatch a serialized command to the BackEnd and get back a serialized response. Mutual exclusion with itself to preserve dispatching order
        Specified by:
        dispatch in interface Dispatcher
        Throws:
        ICPException