Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

B&S Question on instructions

 
John Mattman
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Non-Networked Mode

The assignment instructions provided to me says:

"The operating mode is selected using the single command line argument that is permitted. Architecturally, this mode must use the database and GUI from the networked form, but must not use the network server code at all."

Could someone please explain me the sentence "this mode must use the database and GUI from the networked form, but must not use the network server code at all".
Thanks in advance.

Mattman
 
Mike Ottinger
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mattman,

This means that your application, when running in non-networked mode must connect to your database locally, not through an RMI or socket implementation. Maybe this will help; Think of a database class you've written to satisfy the provided interface Sun has given you. In networked mode, your GUI will interact with that class via RMI or sockets. In local mode, your GUI will directly instantiate the database class itself (or maybe a factory class working on behalf of your database class).

I hope this doesn't muddle things further
 
John Mattman
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mike, Thank you for your reply. But still i could not interpret the wording networked form.

"this mode must use the database and GUI from the networked form"
 
Adrian Engler
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by John Mattman:
Mike, Thank you for your reply. But still i could not interpret the wording networked form.

"this mode must use the database and GUI from the networked form"


I would interpret it the following way: In local mode, the same code for the database and for the GUI must be used as in networking mode.

In other words, the places in the code where a distinction between local and networking mode is made should be minimized to the connection between GUI and database; apart from the communication between client GUI and database, the GUI and the database part should not care (or even know) about whether they are operating in local or networking mode.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic