RMI Flashcards

1
Q

What is RMI

A

Remote Method Invocation.

It allows a java program to invoke a method in another machine.

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

Does RMI need an IDL (interface definition language)?

A

No, javas own interfaces can be used to define the interface to build the ORB from.

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

Which entities are there in a RMI call?

A

Servant/server: the provider of methods to be invoked
Name server: the address book for which services and methods can be called
ORB: object request broker this is who the client and the service communicates with. it gives clients information when they lookup services and clients call the services through the ORB it is the middleware.
Client. client is client

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

What is the differences between RMI and RPC?

A

RMI can take in objects as parameters to methods where RPC is only normal data structures.

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

What is the general idea behind RMI and RPC?

A

It’s to allow a program to instantiate and call an object as if it was local.

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

Which advantages are there with RMI and RPC?

A

the client will be thin and it allows good performance on low-end computers as long as they have a fine connection. Then the services will do the computations

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

What is the registry and how does it work?

A

The registry is where the list of procedures are stored. The client will make a lookup call to the registry to retrieve the possible calls.

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

what a the stub?

A

that is the (orb)object which reveices the call on the clients end. The stub then creates a socket to the remote server where it will be received by the skeleton.

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

what is the skeleton?

A

the skeleton is the (orb) object which translates the request to the server’s language. then the server makes the computations and the skeleton gives it back to the stub.

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

arguments sent via remote methods can be of which 3 types?

A

primitive types, Remote Object type and Serializable

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

can you send other types than primitive types, Remote Object type and Serializable in RMI?

A

no.

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