Title: DISTRIBUTED OBJECTS AND REMOTE INVOCATION
1DISTRIBUTED OBJECTS AND REMOTE INVOCATION
From Chapter 5 of Distributed Systems Concepts
and Design,4th Edition, By G. Coulouris, J.
Dollimore and T. Kindberg Published by Addison
Wesley/Pearson Education June 2005
2Topics
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
3Introduction
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
4Introduction
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
5Introduction
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
6Introduction
Figure 1. Middleware layers
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
7Introduction
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
8Introduction
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
9Introduction
Figure 2. CORBA IDL example
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
10Introduction
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
11Introduction
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
12Introduction
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
13Introduction
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
14Remote Procedure Call (RPC)
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
15Remote Procedure Call (RPC)
Figure 3. Role of client and server stub
procedures in RPC in the context of a procedural
language
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
16Remote Procedure Call (RPC)
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
17RPC Example 1 Local Program
18Protocol Definition Program
19Client Program
20Template of hello_client Program
21Template of hello_client Program
22Template of hello_client Program
23hello_client Program
24 hello_client Program
25hello_client Program
26hello_client Program
27Template of hello-server Program
28hello-server Program
29Making Client and Server Program
30RPC
31RPC Example 2
32RPC Example
33RPC Example
34RPC Example
35RPC Example
36RPC Example
37RPC Example
38RPC Example
39RPC Example
40RPC Example
41RPC Example
42RPC Example
43RPC Example
44RPC Example
45RPC Example
46RPC Example
47Strength and Weaknesses of RPC
48Java RMI
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
49Java RMI
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
50Java RMI- Example 1
51Java RMI
52Java RMI
53Java RMI
54Java RMI
55Java RMI
56Java RMI
57Java RMI Example 2
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
58Java RMI
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
59Java RMI
Figure 4. Java Remote interfaces Shape and
ShapeList
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
60Java RMI
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
61Java RMI
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
62Java RMI
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
63Java RMI
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
64Java RMI
Figure 5. The Naming class of Java RMIregistry
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
65Java RMI
Figure 6. Java class ShapeListServer with main
method
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
66Java RMI
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
67Java RMI
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
68Java RMI
Figure 7. Java class ShapeListServant implements
interface ShapeList
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
69Java RMI
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
70Java RMI
Figure 8. Java client of ShapeList
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
71Java RMI
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
72Java RMI
Figure 9. Classes supporting Java RMI
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005