|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
isc.util.ServerShutdownHook
public class ServerShutdownHook
Catch ^c, kill or other JVM shutdown signals and allow the application to shutdown gracefully by calling local ServerAdmin shu
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
(package private) ServerAdmin |
_admin
|
protected java.lang.Boolean |
_running
|
protected static org.apache.log4j.Logger |
log
log4j |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
ServerShutdownHook(ServerAdmin admin)
Initialize shutdown hook. |
|
| Method Summary | |
|---|---|
void |
run()
Sleep until JVM calls during shutdown. |
void |
setFinish()
The main routine should call this before exiting. |
| 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 |
|---|
protected static org.apache.log4j.Logger log
protected java.lang.Boolean _running
ServerAdmin _admin
| Constructor Detail |
|---|
public ServerShutdownHook(ServerAdmin admin)
admin - | Method Detail |
|---|
public void run()
run in interface java.lang.Runnablerun in class java.lang.ThreadRunnable.run()public void setFinish()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||