hamzakhalidhk / scalable-web-service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This provides the classes needed for Project 3.

The main classes (Cloud, ServerLib, Database, ClientSim) and the sample
database file (db1.txt) are in the lib directory.  

A sample server is provided in the sample directory.  To build this, ensure
your CLASSPATH has the lib and sample directory included.  Then run make in 
the sample directory.  

To run the sample, try:
	https://cmu.zoom.us/j/92704500982?pwd=SlFNREhoanlYV3BsYUlRQ0JKc3dCUT09
This will launch the "Cloud" service, load the database with the items in 
lib/db1.txt, and start simulating clients arriving at a constant rate every
2000 ms.  A single instance of the sample Server will be run as a "VM" 
(actually a spearate process).  

See the handout pdf for more details.  See also the html documentation in
the doc directory.  In particular, read and understand the documentation of
the ServerLib methods.  

About