0% found this document useful (0 votes)
54 views

AssignII DS

This document contains an assignment on distributed systems with 4 questions. Question 1 asks to define an order structure using CORBA IDL and show its flattened form. Question 2 asks to draw the serialized form of two Project objects using Java serialization. Question 3 asks to define a Java class for remote object references. Question 4 asks to modify a doOperation method to add timeout and retry functionality.

Uploaded by

aqib ahmed
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
54 views

AssignII DS

This document contains an assignment on distributed systems with 4 questions. Question 1 asks to define an order structure using CORBA IDL and show its flattened form. Question 2 asks to draw the serialized form of two Project objects using Java serialization. Question 3 asks to define a Java class for remote object references. Question 4 asks to modify a doOperation method to add timeout and retry functionality.

Uploaded by

aqib ahmed
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

NED UNIVERSITY OF ENGINEERING AND TECHNOLOGY

MS (DEIM) Fall 2019 Semester


CS-555: Distributed Systems Assignment II 26-12-2019

1. Define order structure (containing fields OrderID, ItemName, Quantity,


PmtAmount) using CORBA IDL and show flattened form for CORBA CDR
message. OrderID and Quantity should be long and short integers respectively.
PmtAmount should be taken as double whereas ItemName may be Beef Burger
etc). Note: Use three record instances each with a different item name.

2. Given below is the definition of the class Project and two objects of the same class.
Draw the serialized form of the object using Java Object Serialization procedure.
public class Project implements Serializable {
private String projID;
private String projTitle;
private unsigned int duration; // in weeks
private float budget; // in millions
public Project (String a, String b, unsigned int c, float d) {
projID = a; projTitle = b;
duration = c; budget = d; } }

Project p1 = new Project(“C-46”, “Inventory Control”, 25, 2.8);


Project p2 = new Project(“D-12”, “Tumor Detection”, 20, 2.0);

3. Define a class in Java whose instances represent remote object references and it
should provide access methods needed by higher-level protocols (e.g. request-
reply).

4. Define a new version of the doOperation method that sets a timeout on waiting
for the reply message. After a timeout, it retransmits the request message n
times. If there is still no reply, it informs the caller.

Last date of submission: Sat 18th Jan, 2020


Syed Zaffar Qasim
Note:
Assistant Professor
o Assignment should be hand written
o To be submitted at the beginning of class

You might also like