Implement the request processing thread

Assignment Help JAVA Programming
Reference no: EM132356405

Assignment Specification

A Simplified Remote Invocation Framework

Java RMI (Remote Method Invocation, reference Chapter 5 of the textbook and Week-3 lecture) enables the local invocation and remote invocation use the same syntax to implement a generic remote server like the Compute Engine example in Week-3 lecture slides. However, Java RMI needs 2 HTTP servers to transfer Java classes between a RMI client and a RMI server at runtime. In addition, Java RMI applications need a RMI Registry to register or look up the remote objects. In this assignment, you are to implement a remote invocation framework that is similar to Java RMI but lightweight (note: for this assignment, you don't use any Java RMI APIs).

Java object serialization, multi-threading model and client/server model are the fundamental Java components to build distributed applications. In this assignment, you are to use these components or models to develop a particular application - a simplified remote invocation framework. The Java object serialization, multithreading and client/server components have been introduced through weekly lectures, tutorials and lab projects of this unit; you should ensure that you have good understanding of these learning materials before you start this assignment. In this assignment, you will need to integrate what you have learnt to develop the framework. This assignment specification is as follows.

Part 1: Java TCP Networking, Multi-threading and Object Serialization Programming

The framework consists of a compute-server, a compute-client and a class repository, which are depicted in the following diagram. The framework is a generic computing architecture because the compute-client and compute-server just need to know the Task and CSMessage interface or class in advance to interact with each other via the framework.

To complete this assignment, you need to implement such a framework and integrate the Calculate Pi, Calculate Primes and Calculate the Greatest Common Divisor tasks into this framework. The algorithms of these tasks are given on the unit web site. Your compute-server must be multi-threaded and follow the ‘thread-per-connection' architecture (reference Week-4 contents).

The communication between the compute-server and the compute-client must use TCP protocol through the Java TCP API Socket and ServerSocket

To implement the framework, you need to implement the following Java classes:

1. A Java application to implement the compute-client; graphic user interface is required;

2. A Java application to implement the compute-server; and

3. A Java class to implement the request processing thread.

4. A number of Java classes to implement Calculate Pi, Calculate Primes and Calculate the Greatest Common Divisor tasks.

Note: to simulate compute-client and compute-server interaction, you don't have to run them on two physical machines. Instead, they can be run on two JVMs (Java Virtual Machines) on a single physical machine. As a result, the name of the server machine can be ‘localhost'.

Part 2: Program use and test instruction

After the implementation of the framework, prepare an end user' instruction about how to use your software.

Attachment:- A Simplified Remote Invocation Framework.rar

Reference no: EM132356405

Questions Cloud

Describe the law or regulation in general terms : Describe the law or regulation in general terms. Describe what the system engineers did differently that enabled the organization
How to direct your advertising agency : You are the advertising director of a manufacturer of home security surveillance systems, and you are contemplating how to direct your advertising agency.
Discuss target audience and objectives of a pr campaign : A major smartphone manufacturer is launching the newest version of its mobile phone. The company has media advertising planned already, but it is considering.
Imagine you are the owner of IT Consulting Business : Imagine you are the owner of an IT Consulting Business. You have been contracted to help organization operate effectively to protect their client's information
Implement the request processing thread : Java TCP Networking, Multi-threading and Object Serialization Programming - A Java application to implement the compute-server
Securing the sensitive content of disaster recovery plans : Describe the need for providing wide access to the planning documents while securing the sensitive content of the disaster recovery plans
What does a swiss luxury watch brand stand for : What is the SWOT of TAG? What does a Swiss luxury watch brand stand for? What was the situation at TAG Heuer when Biver took over as CEO? Which of Biver's.
How has this course changed your perspective : What were some of the more interesting assignments to you? How has this course changed your perspective? Where might you use modeling in the future?
Emerging threats and countermeasures-cyber attacks : ITS 832-ITS 834-IT in Global economy-Policypractice, Emerging threats and countermeasures - Cyber attacks. how you participate in business operations

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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