Exemplify and explore some important issues of replication

Assignment Help JAVA Programming
Reference no: EM131243484

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

Reference no: EM131243484

Questions Cloud

Hich of two coatings would result in a lower roof temperture : Which of the two coatings would result in a lower roof temperature? Which is preferred for summer use? For winter use? Sketch the spectral distribution of αλ that would be ideal for summer use. For winter use.
Deduce which rate has larger standard deviation : Derive an expression for yAM in terms of ySB. You can assume all years have 365 days. - Deduce which rate has larger standard deviation.
What will the velocity of the moon be afterwards : A 1-kg flower pot resting on a balcony 25 m above the ground. The railing gives way and it falls to the ground. If it is going 20 m/s when it hits the ground, how much heat did it create by friction on its way down?
What is the drying rate per unit length of the oven : Blackbody behavior may be assumed for the water surface and for the oven wall.
Exemplify and explore some important issues of replication : 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..
How cross-cultural challenges considerations are involved : Explore how the cross-cultural challenges and humanitarian considerations are involved. Demonstrate how the organization uses volunteers and the economic benefits associated with this (not just "free labor").
What temperature will the upper disk of diameter : The lower disk of diameter 0.40 m is maintained at 500 K and the surroundings are at 300 K. What temperature will the upper disk of diameter 0.20 m achieve if electrical power of 17.5 W is supplied to the heater on the back side of the disk?
Price a european put option with a strike price : Price a European put option with a strike price of $53 over the last two instants before expiration.  - How does its value differ from an American Put option?
Determine the view factor f12 : Consider the two coaxial disks having diameters D = 250 mm that are separated a distance L = 150 mm. The upper disk has a 125 mm hole. Determine the view factor F12.

Reviews

len1243484

10/15/2016 5:05:12 AM

I Don''t need the assignment to fully work. I''m just looking to get around 40-50% of the assignment total mark. Need it with 11-12 hour. Implementation of 3 Replica Manager classes - 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

Write a Review

JAVA Programming Questions & Answers

  Program implements the functionality of a deck of cards

Write a complete program using "ECLIPS" that implements the functionality of a deck of cards. In writing your program, use the provided DeckDriver and Card classes shown below. Write your own Deck class so that it works in conjunction with the two..

  Prepare a method that takes a string as input

Prepare a method that takes a String as input and returns a String containing the middle character of the String if the length of that String is odd.

  Write a syntactically correct java program

Give an example from your daily life of some things that could be represented as an Array and how it could be used. Write a syntactically correct Java program to present your example: declarations, initializations and use

  Create a new project called fractions

You are going to write an API for a Fractions class. It will accept fractions as input and perform various mathematical operations on them -  Create a new project called Fractions. Within Fractions, create a new class called Fraction. NetBeans will..

  Explain how a typical ide is used explain the purpose of

explain how a typical ide is used. explain the purpose of the various panes of the ide. justify the importance of this.

  1 write an application class that contains several

1 write an application class that contains several methods.nbspthe first method should be named greeting and should

  Number for all nonnegative values

Please if you could show the work for each problem and also if you could advise the theorem used to solved the problem. Does n2 + n +11 always represent a prime number for all nonnegative values of n?

  Generate an array of random integers from zero to nine

Generate an array of 20 random integers from zero to nine. Search for the first occurrence, if any, of the number 7, and report its position in the array

  Java graphics-write an application that extends jframe and

java graphics-write an application that extends jframe and that displays a phrase in every font size from 6 through

  Write a java program to demonstrate the use of jdbc

Write a Java program (non-GUI preferred) to demonstrate the use of JDBC. Write a list of animal and its characteristics to a database using JDBC. Display the characteristics of an animal when that animal is selected.

  Technical community blog

Write a blog article for a coding/technical community blog

  Assignment on java programming

The listing of Tree.java is supplied below as a starting point for this lab. A picture of Tree.java output is also shown. Either cut/paste the code or type it in. Run the program to verify that it works. Study the listing until you understand comp..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd