org.rhq.plugins.apache
Class ApacheErrorLogEntryProcessor

java.lang.Object
  extended by org.rhq.core.pluginapi.event.log.MultiLineLogEntryProcessor
      extended by org.rhq.plugins.apache.ApacheErrorLogEntryProcessor
All Implemented Interfaces:
LogEntryProcessor

public class ApacheErrorLogEntryProcessor
extends MultiLineLogEntryProcessor

A LogEntryProcessor for Apache HTTPd error log files.

Author:
Ian Springer

Nested Class Summary
 
Nested classes/interfaces inherited from class org.rhq.core.pluginapi.event.log.MultiLineLogEntryProcessor
MultiLineLogEntryProcessor.LogEntry, MultiLineLogEntryProcessor.ParseException
 
Field Summary
 
Fields inherited from class org.rhq.core.pluginapi.event.log.MultiLineLogEntryProcessor
dateFormat, eventType, includesPattern, log, logFile, minimumSeverity
 
Constructor Summary
ApacheErrorLogEntryProcessor(String eventType, File logFile)
           
 
Method Summary
protected  DateFormat getDefaultDateFormat()
           
protected  Pattern getPattern()
           
protected  MultiLineLogEntryProcessor.LogEntry processPrimaryLine(Matcher matcher)
           
 
Methods inherited from class org.rhq.core.pluginapi.event.log.MultiLineLogEntryProcessor
parseDateString, processLine, processLines, setDateFormat, setDateIfNotSet, setIncludesPattern, setMinimumSeverity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApacheErrorLogEntryProcessor

public ApacheErrorLogEntryProcessor(String eventType,
                                    File logFile)
Method Detail

getPattern

protected Pattern getPattern()
Specified by:
getPattern in class MultiLineLogEntryProcessor

getDefaultDateFormat

protected DateFormat getDefaultDateFormat()
Specified by:
getDefaultDateFormat in class MultiLineLogEntryProcessor

processPrimaryLine

protected MultiLineLogEntryProcessor.LogEntry processPrimaryLine(Matcher matcher)
                                                          throws MultiLineLogEntryProcessor.ParseException
Specified by:
processPrimaryLine in class MultiLineLogEntryProcessor
Throws:
MultiLineLogEntryProcessor.ParseException


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.