Chapter 5 Flashcards

1
Q

CORBA?

A

It is the framework solution for developing and deploying distributed and heterogeneous systems.

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

Different kinds of communication infrastructure that can be used in distributed systems are?

A
  • Remote procedure call (RPC)
  • Remote method invocation (RMI) on an object reference
  • Synchronous and asynchronous messages
  • Streaming of information over a channel
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

In RMI Framework, how do you perform registration for a service?

A

The framework has to provide a mechanism for registering a remote reference under a name. In CORBA, the registration mechanism is provided by the naming service of the so called object request broker.

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

Explain Remote Method Invocation communication type

A

RMI allows calling of methods references of objects outside the local process. RMI directly supports the notion of Service.
It is more general than remote procedure calls because the caller does not have to know where the receiver object is.

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

What is a Servant in RMI?

A

It is a remote object that provides a service with a name “aService” which the server process has registered at the Registry.

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

What mechanism does Remote Method Invocation need to perform service registration

A

The RMI framework need to provide the mechanism for registering a remote reference under a name.

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

How is registration mechanism for a service handled in COBRA?

A

The registration mechanism is provided by the naming service of the Object Request Broker.

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

What is Skeleton in RMI?

A

It represents the servant on the server side.

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

How does the client use remote object or service in RMI?

A

It looks up the corresponding object reference under a name at the registry.
The client object talks to the lookup mechanism of the RMI framework in its own process and receives a process local reference called Stub.

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

What is Stub in RMI?

A

It represents the remote object within the client process. It provides the same methods as the public interface of the servant.

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

What is Marshalling?

A

It is the transforming of arguments into a process-independent representation.
NOTE:
To transfer arguments between stub and skeleton, objects and values have to be handled in a process independent form.

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

What is Unmarshalling?

A

It is the reverse transformation.

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

How does arguments transfer work between the stub from the client and the skeleton on the server side?

A

In RMI, the stub marshals the arguments and transfer them to the skeleton. The skeleton unmarshalls the parameters, call the method on the servant, accepts the result, marshals the result an sends it back to the stub. The stub finally returns the unmarshalled result to the client object.

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

What is the similarities between the service registration in OSGi and RMI?

A

The client components do not need to know the components providing the service.

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

What are the implications of having the registration and lookup mechanism distributed in several processes in RMI?

A

They include
1. Handling of remote references
2. Passing of parameters and results
3. Method binding and type checking
4. Managing program code
5. Handling of errors.

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

Highlight the two ways in which heterogeneity in distributed systems can be solved?

A
  1. Direct composition: Heterogeneous components can be directly linked and connected.
  2. Brokered composition: Heterogeneous components are linked to a broker that mediates between components.
16
Q

What is the main advantage and disadvantage of direct composition over brokered composition?

A

Advantage is that direct composition is more efficient than brokered composition. The disadvantage is that components can easily corrupt other components.

16
Q

Main disadvantage of call by reference?

A

is that every method call of the servant on a parameter, even a string object or array becomes a remote call which is very expensive.

17
Q

Ways of passing parameters?

A
  1. Pass objects by reference
  2. Pass objects by copy
18
Q

CORBA meaning

A

Common Object Request Broker Architecture