Interface ClientRequestDispatcher

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      CDROutputObject beginRequest​(java.lang.Object self, java.lang.String methodName, boolean isOneWay, ContactInfo contactInfo)
      At the beginning of a request the presentation block uses this to obtain an OutputObject to set data to be sent on a message.
      void endRequest​(ORB broker, java.lang.Object self, CDRInputObject inputObject)
      After the presentation block completes a request it signals the PEPt runtime by calling this method.
      CDRInputObject marshalingComplete​(java.lang.Object self, CDROutputObject outputObject)
      After the presentation block has set data on the CDROutputObject it signals the PEPt runtime to send the encoded data by calling this method.
    • Method Detail

      • beginRequest

        CDROutputObject beginRequest​(java.lang.Object self,
                                     java.lang.String methodName,
                                     boolean isOneWay,
                                     ContactInfo contactInfo)
        At the beginning of a request the presentation block uses this to obtain an OutputObject to set data to be sent on a message.
        Parameters:
        self - -
        methodName - - the remote method name
        isOneWay - - true if the message is asynchronous
        contactInfo - - the CorbaContactInfo which which created/chose this ClientRequestDispatcher
        Returns:
        OutputObject
      • marshalingComplete

        CDRInputObject marshalingComplete​(java.lang.Object self,
                                          CDROutputObject outputObject)
                                   throws ApplicationException,
                                          RemarshalException
        After the presentation block has set data on the CDROutputObject it signals the PEPt runtime to send the encoded data by calling this method.
        Parameters:
        self - -
        outputObject - object to mark as complete
        Returns:
        CDRInputObject if the message is synchronous.
        Throws:
        ApplicationException - if the remote side raises an exception declared in the remote interface.
        RemarshalException - RemarshalException if the PEPt runtime would like the presentation block to start over.
      • endRequest

        void endRequest​(ORB broker,
                        java.lang.Object self,
                        CDRInputObject inputObject)
        After the presentation block completes a request it signals the PEPt runtime by calling this method. This method may release resources. In some cases it may cause control or error messages to be sent.
        Parameters:
        broker - ORB used
        self - unused
        inputObject - unused