|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--java.lang.Thread
|
+--ocsftester.ServerDriver
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.
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 |
|
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
private ServerFrame sf
| Constructor Detail |
public ServerDriver(int p)
| Method Detail |
public void run()
public static void main(java.lang.String[] arg)
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||