| |
|
| java.lang.Object java.util.logging.Handler org.archive.io.SinkHandler
SinkHandler | public class SinkHandler extends Handler (Code) | | A handler that keeps an in-memory vector of all events deemed loggable by
configuration.
Use it to iterate over logged events long after their occurance. One such
use is as a sink for WARNING+SEVERE loggable events. Has support for
whether a log record has been already-read.
TODO: Add being able to get LogRecords by log level: i.e. return all
Level.SEVERE, etc.
TODO: Back the vector with a bdbje collection.
author: stack version: $Date: 2006-09-22 17:23:04 +0000 (Fri, 22 Sep 2006) $ $Revision: 4646 $ |
SinkHandler | public SinkHandler()(Code) | | |
flush | public void flush()(Code) | | |
get | public SinkHandlerLogRecord get(long id)(Code) | | Parameters: id - The sequenceNumber ID of the log record to find. A SinkHandlerLogRecord of the given ID or null if not found. |
getAll | public Vector getAll()(Code) | | all SinkHandlerLogRecords. |
getCount | public int getCount()(Code) | | Count of all records. |
getInstance | public static SinkHandler getInstance()(Code) | | SinkHandler instance if one registered or null. |
getUnreadCount | public int getUnreadCount()(Code) | | The count of unread log records. |
read | public void read(long id)(Code) | | Parameters: id - The sequenceNumber ID of the log record to findand mark as read. |
remove | public SinkHandlerLogRecord remove(long id)(Code) | | Parameters: id - The sequenceNumber ID of the log record to find. The removed SinkHandlerLogRecord or null if none removed. |
|
|
|