Class ElectionServer

java.lang.Object
  |
  +--ElectionServer

public class ElectionServer
extends java.lang.Object

Startup code for the election server. The server is in two "parts": the GUI part and the network part, for handling console requests and client requests. Type

java ElectionServer <election-filename>
to start the server. You can also specify a port number to listen on, overriding the default given in Constants .

Both the network and the GUI are hooked up to the actual server logic through the server object, which we create here. When the GUI wants something done, it calls the server logic and passes itself as an argument, so that the server can display the results.


Constructor Summary
ElectionServer()
           
 
Method Summary
static void main(java.lang.String[] args)
          Create the Server to the real work, then create the appropriate ServerDisplay (GUI) and fork the Network processing thread and hook them up to the server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElectionServer

public ElectionServer()
Method Detail

main

public static void main(java.lang.String[] args)
Create the Server to the real work, then create the appropriate ServerDisplay (GUI) and fork the Network processing thread and hook them up to the server.