Package com.nt.udc.admin.shutdown
Class AdminServerShutdownManager
java.lang.Object
com.nt.udc.admin.shutdown.AdminServerShutdownManager
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
initiateShutdown
(AdminServerImpl.ShutdownThread shutdownThread) Initiates the shutdown process for the Admin Server using the specified shutdown thread.void
registerJVMHook
(AdminServerImpl.ShutdownThread shutdownThread) boolean
-
Field Details
-
AS_MAX_WAIT_FOR_SHUTDOWN
- See Also:
-
-
Constructor Details
-
AdminServerShutdownManager
public AdminServerShutdownManager()
-
-
Method Details
-
initiateShutdown
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
-