|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.contrib.failmon.LogParser
org.apache.hadoop.contrib.failmon.SystemLogParser
public class SystemLogParser
An object of this class parses a Unix system log file to create appropriate EventRecords. Currently, only the syslogd logging daemon is supported.
| Constructor Summary | |
|---|---|
SystemLogParser(java.lang.String fname)
Create a new parser object . |
|
| Method Summary | |
|---|---|
java.lang.String |
getInfo()
Return a String with information about this class |
protected java.util.Calendar |
parseDate(java.lang.String strDate,
java.lang.String strTime)
Parse a date found in the system log. |
EventRecord |
parseLine(java.lang.String line)
Parses one line of the log. |
| Methods inherited from class org.apache.hadoop.contrib.failmon.LogParser |
|---|
checkForRotation, getNext, getReader, monitor, monitor, setNetworkProperties |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SystemLogParser(java.lang.String fname)
| Method Detail |
|---|
public EventRecord parseLine(java.lang.String line)
throws java.io.IOException
parseLine in class LogParserline - the log line to be parsed
java.io.IOException
protected java.util.Calendar parseDate(java.lang.String strDate,
java.lang.String strTime)
parseDate in class LogParserpublic java.lang.String getInfo()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||