Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

alma::acs::logging::AcsLogManager Class Reference

List of all members.

Public Member Functions

void reset () throws SecurityException
void resetReally () throws SecurityException

Private Member Functions

boolean isShuttingDown ()

Private Attributes

final Thread dummyHook = new DummyHook()

Detailed Description

A custom log manager to be instantiated by the JVM based on the java.util.logging.manager property.

Currently only differs from standard JDK LogManager in that it dodges the mean effects of the shutdown hook which calls LogManager#reset() too early. It thus allows the Java container (and the Java manager and potentially other users of acsjlog) to send remote log messages until the end.

Since ACS 7.0 the ClientLogManager no longer delegates logger requests to this class. It is just kept around until we know how to support the JVM logger introspection via java.util.logging.LoggingMXBean} and if we could implement that interface somewhere else.

Author:
hsommer created May 10, 2005 12:47:16 PM


Member Function Documentation

boolean alma::acs::logging::AcsLogManager::isShuttingDown  )  [inline, private]
 

Checks if the JVM is shutting down. Exploits the fact that adding a shutdown hook causes an IllegalStateException while shutting down. Better techniques are welcome!

Returns:
true if the JVM is shutting down, e.g. after getting a Ctrl-C.

void alma::acs::logging::AcsLogManager::reset  )  throws SecurityException [inline]
 

Normal base class impl during normal operation, but no-op implementation during shutdown. This serves as a workaround to escape from resetting all loggers during a Ctrl-C shutdown, as triggered by java.util.logging.LogManager.Cleaner.

To actually get the reset functionality (probably never needed in ALMA/ACS), call resetReally().

See also:
java.util.logging.LogManager#reset()

void alma::acs::logging::AcsLogManager::resetReally  )  throws SecurityException [inline]
 

See also:
java.util.logging.LogManager#reset()


Member Data Documentation

final Thread alma::acs::logging::AcsLogManager::dummyHook = new DummyHook() [private]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:53:38 2009 for ACS Java API by doxygen 1.3.8