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

  Discuss criticisms that have been leveled against mnc

Discuss the criticisms that have been leveled against MNCs in the past regarding their activities in less developed countries. What counterarguments are there to those criticisms?

  State and federal jurisdiction in criminal prosecutions

Exploring the differences between state and federal jurisdiction in criminal prosecutions with respect to crimes against persons.

  Developing a nutritional plan for his team

Feel free to discuss anything (provide advice) that you feel is important for this coach to comprehend concerning nutrition for this team.

  When faced with a problem what do you do to solve it

when faced with a problem what do you do to solve it? assignment asks you to apply a systematic approach to problem

  Promoting healthy newborn and infant development

Apply research and theory to discuss best practices in promoting healthy newborn and infant development.

  Why certain technologies should be investigated

One could illustrate why certain technologies should be investigated and possibly adopted, while others would be off limits. how this technology could be used.

  Description of the community health education theory

Post 3-4 pages description of the community health education theory from the article you selected. Then, explain how it was applied in the study. Finally, explain how the health education theory in the article contributed to success or failure of ..

  Use this wiki to analyze the article against the odds and

1. what is the issue?2. what is the authors conclusion?3. what are the reasons?4. what words or phrases are

  Discuss compares a newer treatment to the standard

The phase III trial tests a treatment that has been shown to help patients. It usually compares a newer treatment to the standard

  Describe eyestrain and its causes

Explain the anatomy of the eye. You can include visual aids such as diagrams where needed. Explain how the cornea focuses images on the retina in normal, myopic, and hypermetropic eyes. Describe how glasses, contact lenses, and laser surgery can be u..

  Write a comment about the given post

Most of the elderly at their end-of-life stage do not die at home as it is their desire. Despite the development of palliative care programs, it has remained a challenge to ensure that most of the elderly die in their homes. One of the main reason..

  Explain feeding adaptations that you would use to capture

Explain the feeding adaptations that you would use to capture and kill one of these large hooved mammals.

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