alma::acs::container::ShutdownHook Class Reference

Inheritance diagram for alma::acs::container::ShutdownHook:
Inheritance graph
[legend]
Collaboration diagram for alma::acs::container::ShutdownHook:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void setAcsContainer (AcsContainer acsContainer)

Protected Member Functions

void regularTermination ()
void interruptDetected ()

Package Functions

 ShutdownHook (Logger logger)

Private Attributes

AcsContainer m_acsContainer

Detailed Description

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.

Author:
hsommer

Constructor & Destructor Documentation

alma::acs::container::ShutdownHook::ShutdownHook ( Logger  logger  )  [inline, package]

Member Function Documentation

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().


Member Data Documentation


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2