Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

question on requirements

 
Hugh Johns
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a requirement..
Network Approaches
Your choice of RMI or serialized objects will not affect your grade, but no other approach is acceptable. In either case, the program must allow the user to specify the location of the database, and it must also accept an indication that a local database is to be used, in which case, the networking must be bypassed entirely. No authentication is required for database access.
I have been assuming all along, I have to provide a constructor in my Data class which takes a string for the location path of any database file local to the server, so the client can specify a specific database file to use.
This complicates things alot. (I use a default database location in the project root)
On re-reading, it seems, because it is under a network heading, it may just be saying allow the user to specify local or network access.
Is the requirement vague enough to give a discription in the design decision doco and then ignore this setting a specific database file.
 
Hugh Johns
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have just reread a second requirement..
When you submit your assignment, each part (client and server) must be executable using a command of this exact form:
java -jar <path_and_filename> [<mode>]
Your programs must not require use of command line arguments other than the single mode flag, which must be supported. Your programs must not require use of command line property specifications. All configuration must be done via a GUI, and must be persistent between runs of the program. Such configuration information must be stored in a file called suncertify.properties which must be located in the current working directory.
So unless you alow the user to select a database file in the GUI configuration, the network mode is the only option?
 
Satish Avadhanam
Ranch Hand
Posts: 697
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Hugh,
Originally posted by Hugh Johns:
I have just reread a second requirement..
When you submit your assignment, each part (client and server) must be executable using a command of this exact form:
java -jar <path_and_filename> [<mode>]
Your programs must not require use of command line arguments other than the single mode flag, which must be supported. Your programs must not require use of command line property specifications. All configuration must be done via a GUI, and must be persistent between runs of the program. Such configuration information must be stored in a file called suncertify.properties which must be located in the current working directory.
So unless you alow the user to select a database file in the GUI configuration, the network mode is the only option?

I just want to let you know that most of the requiremets for the project are distributed throught out the instructions.html file that was given to you. So we need to co-relate them accordingly
Coming to the question asked, here are a couple of links that might help to understand.
Database location
location of database
Mode Flag When Running Program
NX: Mode Flag Confusion
The mode flag
Hope this helps. If you still have any questions, you are welcome to ask.
 
George Marinkovich
Ranch Hand
Posts: 619
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Hugh,
The short answer to your question is this:
The database file must be configurable for your application running in server mode (java -jar runme.jar server) and for your application running in standalone mode (java -jar runem.jar alone), but does not need to be configurable for your application running in network client mode (java -jar runme.jar).
Satish has already pointed you to the relevant topics on the subject and he's right to point out that the requirements are spread throughout the assignment instructions and must often be brought together to make any sense.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic