Remote Method Invocation (RMI) System - IT/Computer Science Assignment Help

Download Solution Order New Solution
Assignment Task

Objective: Objective of this assignment is to write a simple client-server network application using the Remote Procedure Call (RPC) or the Remote Method Invocation (RMI) system. 
Description: You will write a simple air-ticket reservation system, using RPC/RMI mechanism. The reservation server (rsyserver) maintains the seat availability information and responds to client requests for reservation or availability. For simplicity. we arc concerned about one flight on one date only. The reservation information will be maintained only in memory, no need to maintain a persistent database. 
The flight contains 30 seats. 5 of business class and 25 of economy class. Price of ticket is a function of availability-
business class -first 3 tickets: $500 each next 2 tickets: $800 each economy class -first 10 tickets: $200 each second 10 tickets: $300 each last 5 tickets : $450 each 
Scats arc numbered 1-5 for business class and 6-30 for economy class. For a particular class, the airline always sells tickets at lowest available price. 
The reservation client trsvclien0 interacts with user and sends requests to the server based on user input. User input is taken as command line parameters. output is printed on the screen as text. In particular. the client may send the following requests to the saver. 
rsvelient list <server_name> lists all available seats in different classes and pnce ranges. For example. if there is 3 business class seats and 7 economy class seats available, the output is 
image1.JPG

rsvclient reserve <server_name> <class> <passenger_name> <seat_number> 
reserves the particular seat of the particular class for the particular passenger. Assume passenger name to be a single string without space. Class name is either "business" or "economy". Request may fail if invalid scat number is provided (economy class seat number for business class resetvation), or the given seat number is already sold. 
Possible outputs 
Successfully reserved scat $(5 for passenger N

Failed to reserve: invalid seat number

Failed to reserve: seat not available 
rsvclient passengerlist <servername> 
lists all booked passengers for both classes, including the scat number assigned for each of them 
Alice business 2

Bruce business 5

Melissa economy 10

John economy 12

Eric economy 13 
Implementation details:

You will implement both the rsvclient and the rsyserver program using either RPC or RMI. If you arc more familiar with C. use RPC, or, if Java is your favorite. use RMI. Your mclient should handle all the three user requests. The rsyserver should maintain the reservation state and respond to the requests from the client pertaining to all the three functions. 

 

This IT/Computer Science Assignment has been solved by our IT/Computer Science Experts at My Uni Paper. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.

Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.

Get It Done! Today

Country
Applicable Time Zone is AEST [Sydney, NSW] (GMT+11)
+

Every Assignment. Every Solution. Instantly. Deadline Ahead? Grab Your Sample Now.