Package com.netscape.cms.logging
Class LogQueue
java.lang.Object
com.netscape.cms.logging.LogQueue
- All Implemented Interfaces:
ILogQueue
A class represents a log queue.
- Version:
- $Revision$, $Date$
- Author:
- mzhao
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLogEventListener(ILogEventListener listener) Adds an event listener.voidflush()Flushes the log buffers (if any)static ILogQueuevoidinit()Initializes the log queue.voidLogs an event, and notifies logger to reuse the event.voidremoveLogEventListener(ILogEventListener listener) Removes an event listener.voidshutdown()Stops this log queue: shuts down all registered listeners
-
Field Details
-
mListeners
-
-
Constructor Details
-
LogQueue
public LogQueue()Constructs a log queue.
-
-
Method Details
-
getLogQueue
-
init
public void init()Initializes the log queue. -
shutdown
public void shutdown()Stops this log queue: shuts down all registered listeners -
addLogEventListener
Adds an event listener.- Specified by:
addLogEventListenerin interfaceILogQueue- Parameters:
listener- the log event listener
-
removeLogEventListener
Removes an event listener.- Specified by:
removeLogEventListenerin interfaceILogQueue- Parameters:
listener- the log event listener
-
log
Logs an event, and notifies logger to reuse the event. -
flush
public void flush()Flushes the log buffers (if any)
-