org.opends.server.core
Class DirectoryServerShutdownHook

java.lang.Object
  extended by java.lang.Thread
      extended by org.opends.server.api.DirectoryThread
          extended by org.opends.server.core.DirectoryServerShutdownHook
All Implemented Interfaces:
java.lang.Runnable

public class DirectoryServerShutdownHook
extends DirectoryThread

This class defines a shutdown hook that will be invoked automatically when the JVM is shutting down. It may be able to detect certain kinds of shutdown events that are not invoked by the Directory Server itself (e.g., an administrator killing the Java process).


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
DirectoryServerShutdownHook()
          Creates a new shutdown hook that will stop the Directory Server when it is determined that the JVM is shutting down.
 
Method Summary
 void run()
          Invokes the shutdown hook to signal the Directory Server to stop running.
 
Methods inherited from class org.opends.server.api.DirectoryThread
getAssociatedTask, getCreationStackTrace, getDebugProperties, getParentThread, setAssociatedTask
 
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
 

Constructor Detail

DirectoryServerShutdownHook

public DirectoryServerShutdownHook()
Creates a new shutdown hook that will stop the Directory Server when it is determined that the JVM is shutting down.

Method Detail

run

public void run()
Invokes the shutdown hook to signal the Directory Server to stop running.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread