Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question about Requirements (Networking part)

 
Jay Ashar
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Friends, I was just going through my assignment to make sure I have covered everything and my assignment says the follwoing line
"the program must allow the user to specify the location of the database, and it must also accept indication that local database is to be used..."

I am confused as to what does this mean? In my design when user tries to enter local mode it goes directly to the GUI that shows the list of records and if user tries to enter network mode it takes you to the screen which allows user to enter host name and port number, with button connect (which also starts the server). Is this enough for requirement Sun has given above, because I assumed that
giving them text boxes for hostname and port number = specifying the location of database.

Am I right?
 
Anthony Watson
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I chose to allow the user to specifiy an absolute local file path for the database when the application was started in local mode. You could create a local database location dialog box that is similar to your remote database location box.

I have heard that a lot of other developer's had used this method. I think it is safer and being on the safe side will help you relax a bit more while waiting for your score (like I am currently).
 
Jay Ashar
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot. I will try to do the same so I can relax too from next week while waiting for my scores :-)
Although my instruction says allow user to specify database location in networking mode only, but I will still implement the feature you mentioned.
 
Robert Konigsberg
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I implemented it such a way that there were no default values. No .property files = no connection. But that didn't stop the GUI from running. From the GUI one could access a preferences screen which would allow you to reconfigure the IP/Port or database filename. You would then need to restart the GUI or Network server.

Just my $0.02. Is that an off-base idea?

RK
 
Hanna Habashy
Ranch Hand
Posts: 532
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I went a little too far with my design. I allowed the user to specify a local database file, a database on the network, or to connect to a server. Also, the server admin is able to specify a database location, which the server uses to serve its clients.
once the application is running, the client can switch between local and server mode at any time.
The only restriction is that a client can view and query a single database at a time. I wanted to implement the ability to look at two different database, but what I did was already too much.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic