Class AdminServerShutdownManager

java.lang.Object
com.nt.udc.admin.shutdown.AdminServerShutdownManager

public class AdminServerShutdownManager extends Object
Manages the graceful shutdown process of the Admin Server. This class provides mechanisms to control the shutdown flow and execute shutdown tasks using a separate thread.
  • Field Details

  • Constructor Details

    • AdminServerShutdownManager

      public AdminServerShutdownManager()
  • Method Details

    • initiateShutdown

      public boolean initiateShutdown(AdminServerImpl.ShutdownThread shutdownThread)
      Initiates the shutdown process for the Admin Server using the specified shutdown thread.

      This method coordinates the shutdown sequence, acquiring the necessary locks to ensure that the shutdown operation is performed safely and in a controlled manner.

      Parameters:
      shutdownThread - The thread responsible for executing the shutdown operations.
      Returns:
      true if the shutdown process was successfully initiated, false otherwise.
    • shutdownInitiated

      public boolean shutdownInitiated()
    • registerJVMHook

      public void registerJVMHook(AdminServerImpl.ShutdownThread shutdownThread)