|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
org.opends.server.tasks.RestartTaskThread
public class RestartTaskThread
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 |
---|
public RestartTaskThread(Message shutdownMessage)
shutdownMessage
- The shutdown message that will be used.Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |