alma::acs::logging::LogRecordComparator Class Reference

Inheritance diagram for alma::acs::logging::LogRecordComparator:
Inheritance graph
[legend]
Collaboration diagram for alma::acs::logging::LogRecordComparator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

int compare (LogRecord lr1, LogRecord lr2)

Package Functions

 LogRecordComparator ()
 LogRecordComparator (boolean timeOnly)

Private Attributes

boolean timeOnly

Detailed Description

Comparator for LogRecord objects, which uses the log level, timestamp, and log sequence number for comparison.

From PriorityQueue: "The head of this queue is the least element with respect to the specified ordering.". Since we want the most important and oldest log messages first at the head, a higher level value and a smaller time value will result in a lower ordering position. Level takes precedence over time.

Author:
hsommer created Apr 19, 2005 2:02:34 PM

Constructor & Destructor Documentation

alma::acs::logging::LogRecordComparator::LogRecordComparator (  )  [inline, package]
alma::acs::logging::LogRecordComparator::LogRecordComparator ( boolean  timeOnly  )  [inline, package]

Member Function Documentation

int alma::acs::logging::LogRecordComparator::compare ( LogRecord  lr1,
LogRecord  lr2 
) [inline]

References timeOnly.


Member Data Documentation

Referenced by compare().


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

Generated by  doxygen 1.6.2