public class RestartTaskThread extends DirectoryThread
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.DirectoryThread.Factory
Thread.State, Thread.UncaughtExceptionHandler
DIRECTORY_THREAD_GROUP
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.
|
getAssociatedTask, getCreationStackTrace, getDebugProperties, getParentThread, initiateShutdown, isShutdownInitiated, setAssociatedTask, startWork, stopWork
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-2016 ForgeRock AS. All Rights Reserved.