Program on remote procedure call on a cs architecture, JAVA Programming

This project simulates a remote procedure call on a client-server architecture.

You will create both the client and the server. The server will maintain a linked list. It must NOT use one of Java's collection classes (i.e. Vectors, ArrayList, etc), write your own linked list. Singly linked is fine.

The client will request various operations on the linked list. The communication between a client and a server is implemented through sockets. You will build both the server and the client. The server must be multithreaded. I do not specify a communication protocol, you can use your own.

The server:

1. The server will provide the following operations to the client:

  • insert an integer to the end of a linked list (take one integer parameter)
  • remove an integer from a linked list (take one integer parameter - the index into the list)
  • get the number of integers in a linked list (No parameter)
  • get the first integer in a linked list (No parameter)
  • get the last integer in a linked list (No parameter)

2. The server uses semaphores to protect the linked list

3. The server is multithreaded (Ex: can handle multiple client connections).

The client:

1.       Display a menu to users and ask users to input parameters if any

  • insert an integer to the end of a linked list
  • remove an integer from a linked list given a particular index into the list
  • get the number of integers in a linked list
  • get the first integer in a linked list
  • get the last integer in a linked list
  • terminate the client

2.       Pack user's request as a message, which is sent to the server through a socket

3.       Unpack the result and display it to the user

Posted Date: 2/18/2013 7:28:58 AM | Location : United States







Related Discussions:- Program on remote procedure call on a cs architecture, Assignment Help, Ask Question on Program on remote procedure call on a cs architecture, Get Answer, Expert's Help, Program on remote procedure call on a cs architecture Discussions

Write discussion on Program on remote procedure call on a cs architecture
Your posts are moderated
Related Questions
Here are some features of spring:- ? Lightweight: spring is lightweight when it comes to size and transparency. The essential version of spring framework is around 1MB. And t

How to catch multiple exceptions explain with example? If multiple blocks match the exception type, the first block in which matches the kinds of the exception catches it. pub

Differentiate between SMTP and POP3 server? SMTP (Simple Mail Transfer Protocol) is a protocol used to send and receive eMail messages over a TCP/IP network. While POP3 (Post

This project simulates a remote procedure call on a client-server architecture. You will create both the client and the server. The server will maintain a linked list. It must N

Explain what is FontMetrics in Java? No word wrapping is completed when you draw a string in an applet, even if you embed newlines in the string along with \n. If you expect th

Project Description: A java application is required with the subsequent features 1. Ability to use GSM Modem (and/or Mobile phones) or SMPP to send and receive SMS messages

How to create a program using sprite sheet?

#comparison of merge sort and bubble sort

Ask1. Storing the Array: Write an application that uses an Array to store 10messages of type String. You will store this Array with 10 messages of your choosing. For example, a mes

In this assignment, you will create 5 objects and get them to interact together. You will create theatres for which patrons will buy tickets from a box office to watch movies.