Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Java Expert


Home >> Java

FOUNDATIONS OF DISTRIBUTED SYSTEMS

Aim:

The purpose of this assignment is to exemplify and explore some important issues of replication. This assignment requires an understanding of the basics of remote procedure calling and replication.

Method: students will attempt this assignment individually.

In Assignment, we have implemented a Tram Tracking service using a model similar to the one shown in the following diagram:

1153_Figure.jpg

In this assignment you will extend the Assignment 1 model above to support active replication. For that purpose, this assignment requires you to add:

a) Three Replica Manager (RM) for the server component that tracks locations of trams and

b) A server Front End (FE) with which Tram clients will communicate using RMI. The FE will forward remote method calls to all available RMs and forward results back to Tram clients using RMI.

The new system architecture is shown in the following diagram:

938_Figure1.jpg

Front End (FE) hides replication management from the client, communicates with one or more Replica Managers, provides replication transparency. Each RM is a replication of the Tram Tracking server, process incoming requests independently but identically.

System requirements:

- The Trams will only communicate with the server Front End via RMI using the Remote interface shown in the diagram above.

- The system consists of three Replica Managers. Each RM is a replication of the Tram Tracking server to provide communication with server FE via RMI using the same Remote interface shown in the diagram above.

o In this assignment, FE and RMs are all running on localhost, but at different ports (in reality, they can run on different servers having different IP addresses and ports)

- The FE must always be running and at least one RM will be running at any given time to provide fault tolerance.

- When a Tram makes a remote method call to the server Front End:

1. FE will first call a listTramService() method to find out which RM is running. The results of this listTramService() call should also be printed out on the Console of the FE, for example: RM1 on | RM2 off | RM3 on.

2. For each RM that is running, the FE will call the corresponding remote method on that RM, passing the input Message object and receiving a return Message object from that RM. Then the FE will forward that returned Message object to the Tram client. All of this will be performed using RMI as shown in the above diagram.

- While the system is running, at most 2 RMs can be killed and the system should continue simulating the tram movement as usual.

What to demonstrate

Demos will be running in Week 11 and 12 in the labs. No concurrency control needs to be implemented, so users can interfere with each other's operations in a way that leads to error conditions, as allowed by the Unix file system.

You need to demonstrate the system with one server FE, three RMs and several Trams running at the same time. You will need to show service continuity in presence of failure: two RMs will be killed and the system should continue simulating the tram movement.

Acronyms: Replica Manager (RM), Server Front End (FE), Tracking Service (TS)

Server Components

- Implementation of 3 Replica Manager classes

o Alternatively, you can have 3 RM objects created from the same RM class running on 3 different RMI registries
- Implementation of the Server Front End class
- The FE object and the 3 RM objects must be registered on different RMI registries running on localhost but at different ports

o totally 4 RMI registries will be used, one registry for the FE to register and each RM registers to a different registry
- The listTramService() method is implemented as a local method in the FE class (5 marks)
- The FE will not do any major Tram Tracking task. FE will only do the following tasks: listTramService
(check which RM is available), multicast remote method requests to available RM, send returned results to

Tram clients
- All the tasks in FE (for example identify the registry, identify the remote servers, checking which RM and
server are working/not working) are separated into methods. (5 marks)

Client Component
- Many instances of the Tram class can be run simultaneously using multithreading (between each update
request, each tram client sleeps for a time interval that randomly varies between 10 to 20 seconds) (5 marks)
- Tram clients only communicate with the Server Front End (5 marks)

Functionalities
- Each RM can be started and stopped when your application is running without interrupting your application (all Exceptions are caught correctly)

o While the system is running, at most 2 RMs can be killed and the system should continue simulating the tram movement as usual.

- Whenever a Tram client invokes a remote method on the FE, the FE will first invoke its listTramService() method locally to find out which RM is running. The results of this listTramService() call must be printed out on the Console of the FE, for example: RM1 on | RM2 off | RM3 on.

- After running the listTramService(), for each RM that is running, the FE will call the corresponding remote method on that RM, passing the input Message object and receiving a return Message object from that remote method call. So FE will multicast remote method calls to all available remote RM objects. Then the FE will forward only one returned Message object to the Tram client.

Other Requirements

- Methods in the Remote interfaces only accept input arguments of type Message and return an object of type Message. Marshalling and unmarshalling operations must be applied as in Assignment 1

- All exceptions are caught and handled correctly. At least the following types of exception must be caught: RemoteException, NotBoundException, Exception.

- All source codes are given detailed comments and formatted properly

Java, Programming

  • Category:- Java
  • Reference No.:- M91999346
  • Price:- $150

Guranteed 48 Hours Delivery, In Price:- $150

Have any Question?


Related Questions in Java

Assignment taskwrite a java console application that allows

Assignment task Write a java console application that allows the user to read, validate, store, display, sort and search data such as flight departure city (String), flight number (integer), flight distance (integer), fl ...

Assessment -java program using array of Assessment -JAVA Program using array of objects

Assessment -JAVA Program using array of objects Objectives This assessment item relates to the course learning outcomes as stated in the Unit Profile. Details For this assignment, you are required to develop a Windowed G ...

Overviewyou are required to use java se 80 and javafx to

Overview You are required to use Java SE 8.0 and JavaFX to develop a Graphical User Interface (GUI) for the FlexiRent rental property management program created in Assignment 1. This assignment is designed to help you: 1 ...

Assessment socket programmingtaskwrite a java gui program

Assessment: Socket Programming Task Write a JAVA GUI program that would facilitate text chatting/exchanging between two or multiple computers over the network/internet, using the concept of JAVA socket programming. If yo ...

Assessment instructionsin this assessment you will design

Assessment Instructions In this assessment, you will design and code a simple Java application that defines a class, instantiate the class into a number of objects, and prints out the attributes of these objects in a spe ...

Overviewyou are required to use java se 80 and javafx to

Overview You are required to use Java SE 8.0 and JavaFX to develop a Graphical User Interface (GUI) for the FlexiRent rental property management program created in Assignment 1. This assignment is designed to help you: 1 ...

Assessment database and multithread programmingtasktask 1

Assessment: Database and Multithread Programming Task Task 1: Grade Processing University grading system maintains a database called "GradeProcessing" that contains number of tables to store, retrieve and manipulate stud ...

Retail price calculatorwrite a java program that asks the

Retail Price Calculator Write a JAVA program that asks the user to enter an item's wholesale cost and its markup percentage. It should then display the item's retail price. For example: (If an item's wholesale cost is 5. ...

Answer the following question whats the difference public

Answer the following Question : What's the difference public inheritance and private inheritance? What can derived classes inherit from base classes? What cannot be inherited from base classes?

Part a specification - robot simulationpart a

PART A Specification - Robot Simulation PART A Requirements To complete this assignment you will use the supplied eclipse project Robot P1/. It is already set up to execute a simple arm movement loop which you will build ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As