org.rhq.core.pluginapi.event.log
Interface LogEntryProcessor

All Known Implementing Classes:
Log4JLogEntryProcessor, MultiLineLogEntryProcessor

public interface LogEntryProcessor

A processor for entries from a log file. Each LogEntryProcessor instance is associated with a LogFileEventPoller. Whenever the LogFileEventPoller's poll() method detects new lines have been appended to the log file is is tailing, it calls the processLines(java.io.BufferedReader) method, passing it a buffered reader containing the new lines.


Method Summary
 Set<Event> processLines(BufferedReader bufferedReader)
          Processes the specified lines from a log file, and returns a set of Events if appropriate, or otherwise, null.
 

Method Detail

processLines

@Nullable
Set<Event> processLines(BufferedReader bufferedReader)
                        throws IOException
Processes the specified lines from a log file, and returns a set of Events if appropriate, or otherwise, null.

Parameters:
bufferedReader - a buffered reader from which the lines can be read
Returns:
a set of Events if appropriate, or otherwise, null
Throws:
IOException - if reading lines from the supplied buffer reader fails


Copyright © 2008-2009 RHQ Project Advisory Board (Red Hat, Inc.). All Rights Reserved.