Class 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 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.
    • 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.
    • Method Detail

      • run

        public void run()
        Invokes the Directory Server shutdown process.
        Specified by:
        run in interface Runnable
        Overrides:
        run in class Thread