org.opends.server.tasks
Class RestartTaskThread

java.lang.Object
  extended by java.lang.Thread
      extended by org.opends.server.tasks.RestartTaskThread
All Implemented Interfaces:
java.lang.Runnable

public class RestartTaskThread
extends java.lang.Thread

This class defines a thread that will be spawned to invoke a Directory Server in-core restart. That is, the server will perform an internal shutdown, and will then re-bootstrap and start itself up again without ever exiting the JVM.

Note that there are two significant differences between this thread and the shutdown task thread (other than the obvious difference that this one does a restart while the other does a shutdown): this class extends java.lang.Thread instead of org.opends.server.core.DirectoryThread, and this thread is not a daemon thread. These changes are needed to guarantee that the JVM does not exit before we get a chance to restart it if all non-daemon threads go away.


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
RestartTaskThread(Message shutdownMessage)
          Creates a new instance of this shutdown task thread with the provided message.
 
Method Summary
 void run()
          Invokes the Directory Server shutdown process.
 
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

RestartTaskThread

public RestartTaskThread(Message shutdownMessage)
Creates a new instance of this shutdown task thread with the provided message.

Parameters:
shutdownMessage - The shutdown message that will be used.
Method Detail

run

public void run()
Invokes the Directory Server shutdown process.

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