Fundamental java components to build distributed application

Assignment Help Other Subject
Reference no: EM131919839

Develop a simple client/server system to query students,

A Simplified Client/Server Information Query System

Java multi-threading model and client/server model are the fundamental Java components to build distributed applications. In this assignment, you are to develop programming skills of these components or models via a particular application - a simplified client/server information query system. The Java 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 a simple client/server system to query students, subject units and unit enrolment information.

Part 1: Query client and query server design and implementation

1. The query client is a query frontend application, running in a network computer and providing options to:
- Query students' contact details
- Query students' enrolled units
- Query unit details

The query frontend client provides a menu to let a user choose any of these options continuously until the user chooses to exit the system. Once it accepts an option and related information, it will send a query request to the remote server. The client accepts the response from the server and displays the query results to the user. To construct such a client, you will need to use Java UDP datagrams to encapsulate the user's request and a Java UDP datagram socket to communicate with the remote server. The interface of a reference implementation of such a query client is shown in Fig 1.

2. The query server is running on another network computer, accepting and parsing a client's request to interpret the query. The server can distinguish the above 3 different query options. For each request it receives, the server creates a thread to complete the query and sends the result back to the query client. To be consistent with the client, the server needs to use Java UDP datagrams to encapsulate a query result and a Java UDP datagram socket to communicate with the remote client. The interface of a reference implementation of such a query server is shown in Fig 2. Please note the server's output in Fig 2 is to display some queries and results for understanding purpose but not essentially necessary. That is, the server does not have to output anything on a terminal.You will need to design and implement the query client, query server and associated student, subject unit and enrollment entities and processing threads by using standard Java language.

338_Fig.jpg

Fig 1. The interface of query client

393_Fig1.jpg

Fig 2. The interface of query server

Note: you do not need 2 computers to test the system; you will need to run the query cleint and query server on 2 Java Virtual Machines (JVMs) of a physical machines as illustrated in Fig 1 and Fig 2.

Part 2: Documentation

After the implementation of the framework, prepare a document to include:

1. An end user' instruction about how to compile, run and test your system.

2. The limitations of the current system and suggestions for future improvement.

Reference no: EM131919839

Questions Cloud

Can governments be a hindrance to international trade : Name eild discuss key international institutions which have emerged in support of global trade.Can governments be a hindrance to international trade?
What role did religion play in the conquest of the americas : What role did religion play in the Conquest of the Americas? How were the Spanish and Portuguese colonization projects similar and different?
Describe what the content of the training would entail : In the following scenario, consider your current organization with you as the company trainer. You are asked to deliver a two day workshop for managers.
Define the ultimate goals for the negotiation : Define the ultimate goals for the negotiation. Assemble all the issues together, prioritize them,and define the bargaining mix.
Fundamental java components to build distributed application : Implementation of the framework, prepare a document to include: An end user' instruction about how to compile, run and test your system.
Define team performance in organizations : Identify and discuss the current trends in your chosen topic area. Possible topics include (but are not limited to) use of virtual teams in global corporations
Compose the organizations eligibility requirements : Outline two pieces of vital information regarding Medicare Advantage Plans from the Kaiser Family Foundation's Website.
Using the black scholes option pricing model : Using the Black Scholes option pricing model (OPM) what should the premium on this call option be?
How does financial leverage affect your decision in relation : explain how does financial leverage affect your decision in relation to the selection of this project?

Reviews

len1919839

3/29/2018 1:55:35 AM

3. Documentation 5 • Whether the user’s instruction is clear and covers the system function 3 • Limitations of the system and suggestions for improvement 2 Sub Total for Assignment 1 30 Late Penalty -1.5 (5% each calendar day, either full or partial) Plagiarism Penalty Total for Assignment 1

len1919839

3/29/2018 1:55:28 AM

• Whether the structure of query client is sound 3 • Whether the user’s request is correctly constructed 2 • Program readability and necessary in-line comments 1 2. The Query Server 15 • Whether the server is compilable and runnable 2 • Whether UDP is correctly used to communicate to the remote client 2 • Whether the structure of query server is sound 3 • Whether the query server is correctly multithreaded 2 • Whether necessary entities (student, unit, enrolment) are correctly constructed 3 • Whether the user’s request can be correctly parsed 2 • Program readability and necessary in-line comments 1

len1919839

3/29/2018 1:55:22 AM

2. A Microsoft Word document to address the issues as specified in Part 2 above. All the required files must be compressed into a zip file for submission. You must submit your assignment via the online submission system from the unit web site. Any hardcopy or email submission will not be accepted. After the marked assignments are returned, any late submissions will not be accepted. Marking Criteria Marking Criteria Available Marks 1. The Query Client 10 • Whether the query client is compilable and runnable 2 • Whether UDP is correctly used to communicate to the remote server 2

len1919839

3/29/2018 1:55:15 AM

You need to provide the following files in your submission. 1. Implementation files • Files of Java source code of the implementation. The in-line comments on the data structure and program structure in the programs are required. These source code files must be able to be compiled by the standard JDK (Java Development Kit) or NetBeans from Oracle

Write a Review

Other Subject Questions & Answers

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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