DISTRIBUTED OBJECTS AND REMOTE INVOCATION - PowerPoint PPT Presentation

About This Presentation
Title:

DISTRIBUTED OBJECTS AND REMOTE INVOCATION

Description:

* Java RMI Java RMI extends the Java object model to provide support for distributed objects in the Java language. It allows object to invoke methods on remote ... – PowerPoint PPT presentation

Number of Views:151
Avg rating:3.0/5.0
Slides: 73
Provided by: ryersonCa
Category:

less

Transcript and Presenter's Notes

Title: DISTRIBUTED OBJECTS AND REMOTE INVOCATION


1
DISTRIBUTED 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
2
Topics
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
3
Introduction
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
4
Introduction
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
5
Introduction
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
6
Introduction
Figure 1. Middleware layers
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
7
Introduction
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
8
Introduction
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
9
Introduction
Figure 2. CORBA IDL example
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
10
Introduction
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
11
Introduction
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
12
Introduction
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
13
Introduction
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
14
Remote Procedure Call (RPC)
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
15
Remote 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
16
Remote Procedure Call (RPC)
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
17
RPC Example 1 Local Program
18
Protocol Definition Program
19
Client Program
20
Template of hello_client Program
21
Template of hello_client Program
22
Template of hello_client Program
23
hello_client Program
24
hello_client Program
25
hello_client Program
26
hello_client Program
27
Template of hello-server Program
28
hello-server Program
29
Making Client and Server Program
30
RPC
31
RPC Example 2
32
RPC Example
33
RPC Example
34
RPC Example
35
RPC Example
36
RPC Example
37
RPC Example
38
RPC Example
39
RPC Example
40
RPC Example
41
RPC Example
42
RPC Example
43
RPC Example
44
RPC Example
45
RPC Example
46
RPC Example
47
Strength and Weaknesses of RPC
48
Java RMI
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
49
Java RMI
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
50
Java RMI- Example 1
51
Java RMI
52
Java RMI
53
Java RMI
54
Java RMI
55
Java RMI
56
Java RMI
57
Java RMI Example 2
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
58
Java RMI
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
59
Java RMI
Figure 4. Java Remote interfaces Shape and
ShapeList
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
60
Java RMI
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
61
Java RMI
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
62
Java RMI
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
63
Java RMI
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
64
Java RMI
Figure 5. The Naming class of Java RMIregistry
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
65
Java RMI
Figure 6. Java class ShapeListServer with main
method
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
66
Java RMI
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
67
Java RMI
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
68
Java RMI
Figure 7. Java class ShapeListServant implements
interface ShapeList
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
69
Java RMI
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
70
Java RMI
Figure 8. Java client of ShapeList
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
71
Java RMI
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
72
Java RMI
Figure 9. Classes supporting Java RMI
Couloris,Dollimore and Kindberg Distributed
Systems Concepts Design Edn. 4 , Pearson
Education 2005
Write a Comment
User Comments (0)
About PowerShow.com