Package org.opends.server.tasks
Class ShutdownTaskThread
- java.lang.Object
-
- java.lang.Thread
-
- org.opends.server.api.DirectoryThread
-
- org.opends.server.tasks.ShutdownTaskThread
-
- All Implemented Interfaces:
Runnable
public class ShutdownTaskThread extends DirectoryThread
This class defines a thread that will be spawned to invoke the Directory Server shutdown process. This needs to be a separate thread because the task that creates it has to complete before the server can really shut down.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
-
Field Summary
-
Fields inherited from class org.opends.server.api.DirectoryThread
DIRECTORY_THREAD_GROUP
-
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description ShutdownTaskThread​(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 org.opends.server.api.DirectoryThread
getAssociatedTask, getCreationStackTrace, getDebugProperties, getParentThread, initiateShutdown, isShutdownInitiated, isStarted, isStarting, setAssociatedTask
-
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
-
ShutdownTaskThread
public ShutdownTaskThread​(LocalizableMessage shutdownMessage)
Creates a new instance of this shutdown task thread with the provided message.- Parameters:
shutdownMessage
- The shutdown message that will be used.
-
-