|
Ver. 20060815 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
Server.WatchDog
public class WatchDog
The startup class that watches the server threads and kills them when the server is exiting. It also launches the server and maintains the daemon thread. 2006/08/10 Kyle Reed
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
(package private) AdminConsole |
watch
|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
WatchDog(AdminConsole s)
Constructor for the watch dog. |
Method Summary | |
---|---|
private void |
closeModules()
Tells the server to send close messages to the modules so they should exit nicely, allowing a restart of the server. |
private boolean |
closeRemoteAdmin()
Attempts to nicely close the AdminConsole. |
private boolean |
closeSocketListener()
Attempts to nicely close the main server listener in order to close all of the persistant connections. |
static void |
main(java.lang.String[] args)
Startup point for the server that starts the server and admin parachute threads. |
void |
run()
Daemon thread of the WatchDog. |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
AdminConsole watch
Constructor Detail |
---|
public WatchDog(AdminConsole s)
Method Detail |
---|
public static void main(java.lang.String[] args)
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
private void closeModules()
private boolean closeSocketListener()
private boolean closeRemoteAdmin()
|
Ver. 20060815 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |