RMI Flashcards

1
Q

What does RMI do?

A

Allows an object in one VM to invoke methods on another object in another VM (potentially on another physical machine on the network).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the 3 things you must consider when aming Distributed Object applications?

A

Remote Object Location
Remote Object Communication
Accessing Class Definitions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is Remote Object Location?

A

Server application registers the remote objects with the RMI registry
or
pass remote object references via invocations of methods on other objects.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is RMI registry?

A

Relates remote objects with names

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is RMI server?

A
Calls the registry to associate a name with a remote object
bind() and rebind() - Naming class and registry interface.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is RMI client?

A

Looks up a remote object by its name in the servers registry and then invokes a method on it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How can an object act as remote?

A

The object must implement an interface which extends the java.rmi.Remote interface.
Each method in the interface must declare that it throws java.rmi.RemoteException.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the 3 class loaders used by a JVM

A
Bootstrap class loader- loads core java libraries, part of the JVM itself
The extensions class loader- loads from system-wide, platform specific extension directory.
The system class loader, loads from the current directory and any specified in the CLASSPATH environment variable of a system.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

4 layer RMI architecture

A

Application layer- the client and server program
Stub and Skeleton layer- intercepts method calls made by the client/redirects them to a remote RMI service
Remote reference layer- understand how to interpret and manage references made from clients to remote service objects
Transport layer- based on TCP/IP connections between machines

How well did you know this?
1
Not at all
2
3
4
5
Perfectly