Package org.opends.server.tasks
Class RestartTaskThread
- java.lang.Object
-
- java.lang.Thread
-
- org.opends.server.tasks.RestartTaskThread
-
- All Implemented Interfaces:
Runnable
public class RestartTaskThread extends 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 extendsjava.lang.Thread
instead oforg.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
Thread.State, Thread.UncaughtExceptionHandler
-
-
Field Summary
-
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description RestartTaskThread​(LocalizableMessage shutdownMessage)
Creates a new instance of this shutdown task thread with the provided message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run()
Invokes the Directory Server shutdown process.-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Constructor Detail
-
RestartTaskThread
public RestartTaskThread​(LocalizableMessage shutdownMessage)
Creates a new instance of this shutdown task thread with the provided message.- Parameters:
shutdownMessage
- The shutdown message that will be used.
-
-