

Public Member Functions | |
| void | setAcsContainer (AcsContainer acsContainer) |
Protected Member Functions | |
| void | regularTermination () |
| void | interruptDetected () |
Package Functions | |
| ShutdownHook (Logger logger) | |
Private Attributes | |
| AcsContainer | m_acsContainer |
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 | ) | [inline, package] |
| void alma::acs::container::ShutdownHook::interruptDetected | ( | ) | [inline, 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, m_acsContainer, and alma::acs::container::AcsContainer::shutdown().
| void alma::acs::container::ShutdownHook::regularTermination | ( | ) | [inline, 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 | ) | [inline] |
Sets m_acsContainer.
References m_acsContainer.
Referenced by alma::acs::container::AcsContainerRunner::run().
Referenced by interruptDetected(), and setAcsContainer().
1.6.2