ocsftester
Class ServerDriver

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--ocsftester.ServerDriver

public class ServerDriver
extends java.lang.Thread

The ServerDriver class is a driver of the ServerFrame class. It automatically changes the states of the server a follows: listen for 10 sec, stop for 5 sec, close for 5 sec, listen for 20 sec, stop for 10 sec, listen for 10 sec, stop for 5 sec. This cycle is indefinitely repeated.

Type java ocsftester.ServerDriver port_number to start the server.

The window is red when the server is closed, yellow when the server is stopped and green when open.

See Also:
SimpleServer

Field Summary
private  ServerFrame sf
           
 
Fields inherited from class java.lang.Thread
contextClassLoader, daemon, eetop, group, inheritedAccessControlContext, MAX_PRIORITY, MIN_PRIORITY, name, NORM_PRIORITY, priority, single_step, stillborn, stopThreadPermission, target, threadInitNumber, threadQ, values
 
Constructor Summary
ServerDriver(int p)
           
 
Method Summary
static void main(java.lang.String[] arg)
          Starts the server.
 void run()
           
 
Methods inherited from class java.lang.Thread
, activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, exit, getContextClassLoader, getName, getPriority, getThreadGroup, init, interrupt, interrupt0, interrupted, isAlive, isDaemon, isInterrupted, isInterrupted, join, join, join, nextThreadNum, registerNatives, resume, resume0, setContextClassLoader, setDaemon, setName, setPriority, setPriority0, sleep, sleep, start, stop, stop, stop0, suspend, suspend0, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sf

private ServerFrame sf
Constructor Detail

ServerDriver

public ServerDriver(int p)
Method Detail

run

public void run()
Overrides:
run in class java.lang.Thread

main

public static void main(java.lang.String[] arg)
Starts the server. The default port is 12345.