public class RestartTaskThread extends Thread
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.Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
RestartTaskThread(LocalizableMessage shutdownMessage)
Creates a new instance of this shutdown task thread with the provided message.
|
Modifier and Type | Method and Description |
---|---|
void |
run()
Invokes the Directory Server shutdown process.
|
activeCount, checkAccess, clone, 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
public RestartTaskThread(LocalizableMessage shutdownMessage)
shutdownMessage
- The shutdown message that will be used.Copyright 2010-2022 ForgeRock AS.