• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

No server GUI

 
Chris Harris
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
Many people have suggested a GUI is developed for the server, however I have decided against this. The main point of this GUI would be to provide a means of controlling the shutdown of the server.
Instead I have just added a shutdown hook to my server code. When the user does Control ^C the server is shutdown in a controlled way. Do you think this is expectable? Is any one else doing this?
Thanks,
Chris.
 
Satish Avadhanam
Ranch Hand
Posts: 697
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Chris, you have provided a way to stop the server. But how to start a server. I mean only one command line argument is allowed right i.e. either server or alone or nothing. When server is entered, you will start the server, but am just curious to know, how are you configuring the dbfile and port when in server mode?
 
Xie Ruchang
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My spec says the configuration has to be done using gui. If your server does not have gui, how configuration is done, like changing the port number?
 
George Marinkovich
Ranch Hand
Posts: 619
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Chris,
Originally posted by Chris Harris:
Many people have suggested a GUI is developed for the server, however I have decided against this. The main point of this GUI would be to provide a means of controlling the shutdown of the server.

Satish and Frankie have identified the main purpose of the server GUI: to allow the user to configure the database file location which is a requirement in the assignment instructions. Many people also make the port configurable as well. As a bonus the GUI gives the user a nice way to shutdown the server.
 
Nathaniel Stoddard
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think there are many valid ways of start/stopping/configuring the server while still staying true to the assignment specs. I used the CTRL-C hook and allowed the user to configure all settings through a dialog box thorugh the regular client programs -- and passed.
I don't think it's important how you do all this -- just as long as you do what your specs say, and appropriately document the necessary steps in the user documentation.
 
Chris Harris
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks everyone,
I went back and had another look at the spec:
All configuration must be done via a GUI, and must be persistent between runs of the program

So it looks like I have no choice.
Chris.
When it this going to be finish!!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic