12.07.2015 Views

Implementation of a Distributed Document-Based System

Implementation of a Distributed Document-Based System

Implementation of a Distributed Document-Based System

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

As the client retrieves files from the server, the console displays the results <strong>of</strong> the search.These messages can be easily removed from the client source code or enabled through a debugswitch in the client’s invocation. A set <strong>of</strong> typical console results are displayed in Figure A4.Note the results in red in Figure A4. This message is printed when the client workstation’slocally cached copy is the same as the server’s copy.bash-2.05a$ java -classpath . DLDClientSelected 2005_assign1.txtChecking for 2005_assign1.txt on RMI server: siskoNew copy <strong>of</strong> /tmp/2005_assign1.txt returned from serverSelected 2005_hwk1.txtChecking for 2005_hwk1.txt on RMI server: siskoChecking for 2005_hwk1.txt on CORBA server: kirkChecking for 2005_hwk1.txt on RMI server: spockNew copy <strong>of</strong> /tmp/2005_hwk1.txt returned from serverSelected 2003_Final_Exam.pdfChecking for 2003_Final_Exam.pdf on RMI server: siskoChecking for 2003_Final_Exam.pdf on CORBA server: kirkNew copy <strong>of</strong> /tmp/2003_Final_Exam.pdf returned from serverSelected 2005_assign1.txtChecking for 2005_assign1.txt on RMI server: siskoNo changes in /tmp/2005_assign1.txt using local cached copySelected CS843_Syllabus.pdfChecking for CS843_Syllabus.pdf on RMI server: siskoChecking for CS843_Syllabus.pdf on CORBA server: kirkNew copy <strong>of</strong> /tmp/CS843_Syllabus.pdf returned from serverFigure A4. Sample Client Console OutputEnding the Client ApplicationThe “Exit” button is used to end the client application. The window decoration (“X”) inthe upper right corner can also be used to end the client application. Ending the clientapplication does not terminate the servers as another user may be executing the client applicationfrom another workstation.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!