Constructor and Description |
---|
HadoopLogParser(java.lang.String fname)
Create a new parser object and try to find the hostname
of the node that generated the log
|
Modifier and Type | Method and Description |
---|---|
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 Hadoop log.
|
EventRecord |
parseLine(java.lang.String line)
Parses one line of the log.
|
checkForRotation, getNext, getReader, monitor, monitor, setNetworkProperties
public HadoopLogParser(java.lang.String fname)
public EventRecord parseLine(java.lang.String line) throws java.io.IOException
parseLine
in class LogParser
line
- the log line to be parsedjava.io.IOException
protected java.util.Calendar parseDate(java.lang.String strDate, java.lang.String strTime)
public java.lang.String getInfo()
Copyright © 2009 The Apache Software Foundation