|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
com.sun.slamd.client.ClientShutdownHook
This class defines a shutdown hook that will be registered with the SLAMD client once it has been successfully created. This shutdown hook will be invoked whenever the client is shutting down in an attempt to notify the server of the shutdown and close the connection gracefully. Note that the use of shutdown hooks requires a Java version of at least 1.3.
| Field Summary |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
ClientShutdownHook(Client client)
Creates a client shutdown hook that is associated with the provided SLAMD client. |
|
| Method Summary | |
void |
run()
Sends a status response message to the server that indicates the SLAMD client is shutting down. |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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 |
| Constructor Detail |
public ClientShutdownHook(Client client)
client - The SLAMD client with which this shutdown hook is
associated.| Method Detail |
public void run()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||