1 / 28

RPC – Remote Procedure Call

RPC – Remote Procedure Call. RPC – Remote Procedure Call. RPC – Remote Procedure Call. Klient (na počítači A). Server (na počítači B). Lokální volání funkce. Marshalling (serializace) argumentů. Unmarshalling (deserializace) argumentů. Zaslání požadavku. Služba. Klientský program.

walter
Download Presentation

RPC – Remote Procedure Call

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. RPC – Remote Procedure Call

  2. RPC – Remote Procedure Call

  3. RPC – Remote Procedure Call Klient (na počítači A) Server (na počítači B) Lokální volání funkce Marshalling (serializace) argumentů Unmarshalling (deserializace) argumentů Zaslání požadavku Služba Klientský program Vykonání požadavku Marshalling (serializace) návratové hodnoty Unmarshalling (deserializace) návratové hodnoty

  4. RPC – Remote Procedure Call Sluzba.idl Klient (na počítači A) Server (na počítači B) rpcgen Služba Klientský program Skeleton Stub

  5. RPC – Remote Procedure Call Sluzba.idl Klient (na počítači A) Server (na počítači B) rpcgen Služba Klientský program Skeleton Stub

  6. RPC – Remote Procedure Call Vygenerovaný skeleton:

  7. RPC – Remote Procedure Call Modifikace klienta

  8. CORBA – Common Object Request Broaker Architecture The Object ManagementGroup (OMG) http://www.omg.org/ 1.Locate 3.Execute 2.Activate

  9. CORBA – Common Object Request Broaker Architecture The Object ManagementGroup (OMG) http://www.omg.org/ Object Adaptor IDL Skeleton Dynamic Skeleton Interface ORB interface IDL Stube Dynamic Invocation Interface Object implementation Client ORB Core

  10. CORBA – Common Object Request Broaker Architecture The Object ManagementGroup (OMG) http://www.omg.org/ Příklad CORBA IDL:

  11. CORBA – Common Object Request Broaker Architecture The Object ManagementGroup (OMG) http://www.omg.org/ Object Adaptor IDL Skeleton Dynamic Skeleton Interface ORB interface IDL Stube Dynamic Invocation Interface Object implementation Client ORB Core

  12. CORBA – Common Object Request Broaker Architecture The Object ManagementGroup (OMG) http://www.omg.org/ ORB Core ORB Core IIOP Internet Inter-ORB Protocol

  13. Java RMI ORB Core Java RMI – Remote Method Invocation IIOP

  14. Java RMI – Remote Method Invocation CLIENT

  15. Java RMI – Remote Method Invocation SPUŠTĚNÍ SERVERU

  16. Java RMI – Remote Method Invocation SERVER

  17. Java RMI – Remote Method Invocation ServerExecutable <<interface>> ServerRemoteObject.class rmic.exe ServerRemoteObject ServerRemoteObject_Stub.class

  18. Java RMI – Remote Method Invocation ServerRemoteObject.class rmic.exe ServerRemoteObject_Stub.class

  19. Java RMI – Remote Method Invocation Client exec:ServerExecutable Toto je ve skutečnosti ServerRemoteObject_Stub ServerRemoteObject add(3+5) add(3+5) 8 8 JVM 2 JVM 1

  20. COM Component Object Model Interface Identifier – např. {A46C12C0-4E88-11CE-A6F1-00AA0037DEFB} GUID – Global Unique Identifier GUIDGEN – nástroj generující GUID IUnknown

  21. COM Deklarace interface (třída) MIDL IDL RPC kód (DCOM)

  22. COM IUnknown SumClassFactory IClassFactory IUnknown SumClass ISum IUnknown SumClass ISum

  23. COM

  24. COM QueryInterface - reflexivnost IUnknown A B C

  25. COM QueryInterface - symetrie IUnknown A B C

  26. COM QueryInterface - transitivita IUnknown A B C

  27. COM – dědění na binární úrovni

  28. COM – dědění na binární úrovni

More Related