class DeathWatcherThread
extends java.lang.Thread
Client-side background thread to handle force disconnect commands from the server. We need this thread because jdk 1.2 has a bug where RMI callbacks are not privileged to interact with the Swing thread. By creating a thread to handle forced logouts ourselves, we can have an RMI callback pass a message to this thread (which has local privileges), which can then throw up a dialog explaining about being disconnected, etc.
When run, this thread waits for die() to be called, whereupon it
creates an ExitThread
to actually shut down the client.
| Modifier and Type | Field and Description |
|---|---|
(package private) java.lang.String |
message |
(package private) static TranslationService |
ts
TranslationService object for handling string localization in the
Ganymede client.
|
| Constructor and Description |
|---|
DeathWatcherThread() |
| Modifier and Type | Method and Description |
|---|---|
void |
die(java.lang.String message)
This method causes the DeathWatcherThread to kick off the
end-of-the-world process.
|
void |
run() |
activeCount, checkAccess, clone, 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, yieldstatic final TranslationService ts
java.lang.String message