Public Member Functions | |
void | setAcsContainer (AcsContainer acsContainer) |
Protected Member Functions | |
void | regularTermination () |
void | interruptDetected () |
Package Functions | |
ShutdownHook (Logger logger) |
This class will be registered to the JVM Runtime as a shutdown thread to be run at shutdown, both for regular termination and for interruption like Ctrl-C (SIGINT).
TODO: look at void TerminationSignalHandler(int)
from the C++ implementation, and figure out what else to do at shutdown.
alma.acs.container.ShutdownHook.ShutdownHook | ( | Logger | logger | ) | [package] |
void alma.acs.container.ShutdownHook.interruptDetected | ( | ) | [protected, virtual] |
Tidying up when the JVM is about to terminate due to an interrupt signal
Implements alma.acs.shutdown.ShutdownHookBase.
References alma.acs.shutdown.ShutdownHookBase.logger, and alma.acs.container.AcsContainer.shutdown().
void alma.acs.container.ShutdownHook.regularTermination | ( | ) | [protected] |
Subclasses can override this method to log nothing or something else. No other action is expected in the overridden method.
Reimplemented from alma.acs.shutdown.ShutdownHookBase.
References alma.acs.shutdown.ShutdownHookBase.logger.
void alma.acs.container.ShutdownHook.setAcsContainer | ( | AcsContainer | acsContainer | ) |
Sets m_acsContainer.