Public Member Functions | Protected Member Functions | Package Functions

alma.acs.container.ShutdownHook Class Reference

Inheritance diagram for alma.acs.container.ShutdownHook:
alma.acs.shutdown.ShutdownHookBase

List of all members.

Public Member Functions

void setAcsContainer (AcsContainer acsContainer)

Protected Member Functions

void regularTermination ()
void interruptDetected ()

Package Functions

 ShutdownHook (Logger logger)

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  )  [package]

Member Function Documentation

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.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties