This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

B&S: I don't know what it means

 
Steve Taiwan
Ranch Hand
Posts: 166
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I get B&S assignment. In the assignment, a sentance is
The mode flag must be either "server", indicating the server program must run, "alone", indicating standalone mode, or left out entirely, in which case the network client and gui must run.


I explain it as the follows.
1. when mode flag is "server", start only database server.
2. when mode flag is "alone", start gui client and local connection
3. when mode flag is "", start gui client and network connection.

Am I right?
Please let me know what it means.
Thank you for replying my thread.

<phil>Edited to solve an alignment issue on the whole thread (replaced the CODE block by a QUOTE one)</phil>
[ August 21, 2004: Message edited by: Philippe Maquet ]
 
Hanna Habashy
Ranch Hand
Posts: 532
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Steve,
I explain it as the follows.
1. when mode flag is "server", start only database server.
2. when mode flag is "alone", start gui client and local connection
3. when mode flag is "", start gui client and network connection.

You might be right, you are using two terms, server and network connection, and I don't know what do you mean by them.
My requirement was identical to yours, so let me tell you what I did.
I had two major compnent, the server and server gui, and the client and client gui. Basically, they are the server and the client. The gui is nothing but a graphical representaion of the software.
1. When the mode flag is "server", only the server will run.
2. When the mode flag is "client", only client will run.
3. When the mode flag is "", the client and the server will run.
 
mike acre
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let me explain it another way.

You have one archive of classes.

This constitutes THE application.

The application can run in one of 3 modes.

Server mode 'server' executes the server code that makes a remote object, that constitutes the database, available at a specified port. So here server and database code run.

Client mode '' executes the GUI client that connects to the remote object made available by the server mode.

Local mode 'alone' executes the GUI client that connects to the database code directly.

There is likely very little difference between local and client mode, just in the way it gets an object that represents the database.

However in local mode the code in the server package will NOT be used at all, this is very important.

YMMV if you use plain serialised objects over Socket layer.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic