database used: mySQL Source Files used: ConToDB.java ConnWrapper.java data.java ReturnSearchBean.java findfile.java modifyFile.java Request.html Modify.html Test files: Try.java, dbtest.java WebServers Running(4) Redirector WebServer(1): linuxserver1.cs.umbc.edu:10154 Servers(3): atlas.csee.umbc.edu:10154 linuxserver2.cs.umbc.edu:10154 sunserver1.cs.umbc.edu:10154 Image files present: filename fileURL ServerId a.jpg http://atlas.csee.umbc.edu:10154/images/a.jpg 1 b.jpg http://linuxserver2.cs.umbc.edu:10154/images/b.jpg 2 c.jpg http://sunserver1.cs.umbc.edu:10154/images/c.jpg 3 http://linuxserver1.cs.umbc.edu:10154/Request.html type complete filename into the text box and click on Submit. if file is present then the file is returned, else "file not present" is returned. Ex: type"a.jpg" for accessing a.jpg type"list" for list of all files type garbage to get file not present page. http://linuxserver1.cs.umbc.edu:10154/Modify.html Enter all the 3 fields, viz., File Name, File URL and ServerId and choose the action and click on Submit Query Note: if Correct ServerId is not correct, then the file is NOT deleted. It should be noted that incorrect URL will still result in file being deleted. This is so, because it is assumed that the file to be deleted will have unique name and serverId. It is not possible for 2 files to be having same name and different URL under same server. Examples: if case 1: filename :a.jpg fileURL:http://atlas.csee.umbc.edu:10154/images/a.jpg ServerId:1 if remove is selected , a.jpg info is correctly removed from database. if add is selected again, effectively meaning, 2 files are having same info which is not possible, no duplicate entry is formed. case 2: filename :a.jpg fileURL:http://atlas.csee.umbc.edu:10154/images/a.jpg ServerId:invalid number if remove is selected: No file is deleted. if add is selected, system assumes that there is a different server because ServerId is different and hence adds it to database. case 3: filename :a.jpg fileURL:invalid URL ServerId:1 if remove is given: system deletes the information associated with filename: ServerId combination, which is assumed to be unique. if add is give then, system will add the info to the database and the error will only be visible when some client asks for the file name and because of invalid URL, page not found error is returned. This is assumed to be a manual error.