• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

NX: Press here to end the world?

 
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I currently have a small JOptionPane that opens when the server runs. It says some "arent u clever for starting the server" message and has a button to "Shotdown the server". You press it, it ends.
The problem is I tend to feel 'instinctivly' that I can now close the command window (which obviously I cannot). Its like this window is the program, rather than a nice little warning. Especially when I leave the computer and come back 6 hours later. I keep killing the server without meaning to.
Im now 99% leaning towards removing the little option and just having a text message in the cmd window, and the user just presses CTRL-C.
Its crude and yet it feels more .... serverish Hell thats how I close my home servers. And this ranks alongside them for crude. Anyone think the guy assessing this iis gonna have a stick up his butt over this?
 
town drunk
( and author)
Posts: 4118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
lol
no
 
Ranch Hand
Posts: 493
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't think so. My instruction for stopping the server was to press <CR>. <CTRL-C> is the same thing. I didn't loose any points because of it.
Bharat
 
Ranch Hand
Posts: 451
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My approach was to use the same JFrame extended MainWindow class for server mode that I use for client or standalone operation so there is a gui for all modes.
On startup, a LocationDialog is launched that gets the location info appropriate to the mode. If this completes successfully, the MainWindow is displayed.
All versions provide a status section with a LocationView showing the appropriate info for the mode in use and an Exit button. The client and standalone modes also display the ContractorView with the table and search/book controls above the status section. It would be trivially simple to add the ContractorView to the server gui as well or not so trivially to add a LoggingView or other admin functions but that is well beyond the scope of the assignment.
There is no console window or typing required to exit. It is hard to say whether the grader considers this good or bad. With real servers, it is nice to be able to run in a console window (makes it easy to show logging messages) or quietly as a service daemon but that is also beyond the scope of the assignment.
[ February 12, 2004: Message edited by: Ken Krebs ]
 
Morgan Bath
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Good, thanks.
Servers should be run from horrible and long command lines with 20 differerent parameters, like the Sun j2ee server It should leave an out of place command window sat on your desktop causing clutter, and DEFINATELY be terminated by a brutal CTRL-C attack. Unfreindly and monochromatic!
Start making nice guis for servers and people might start thinking your not a complete wizard when you get the thing running. Look what windows did to ruin the mystique. No more oooohs and ahhhs cos you actually knew the difference between extended and expaanded memory and the config.sys made sense to you Long live UNIX. Long live commands that sound like several zoo animals breaking wind and gurgling at the same time. Long live PERL scripts and property files instead of wizards ....
err ....
I think ive had enough today. Im off to play jedi academy for a while ...
thanks!
 
Ranch Hand
Posts: 619
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Morgan,

Originally posted by Morgan Bath:
Im now 99% leaning towards removing the little option and just having a text message in the cmd window, and the user just presses CTRL-C.
Its crude and yet it feels more .... serverish Hell thats how I close my home servers. And this ranks alongside them for crude. Anyone think the guy assessing this is gonna have a stick up his butt over this?


Well, only if he takes the following requirement seriously:

Hope this helps,
George
 
No. No. No. No. Changed my mind. Wanna come down. To see this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic