org.apache.hadoop.tools.rumen
Class CurrentJHParser
java.lang.Object
org.apache.hadoop.tools.rumen.CurrentJHParser
- All Implemented Interfaces:
- Closeable, JobHistoryParser
public class CurrentJHParser
- extends Object
- implements JobHistoryParser
JobHistoryParser
that parses JobHistory
files produced by
JobHistory
in the same source
code tree as rumen.
Method Summary |
static boolean |
canParse(InputStream input)
Can this parser parse the input? |
void |
close()
|
org.apache.hadoop.mapreduce.jobhistory.HistoryEvent |
nextEvent()
Get the next HistoryEvent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CurrentJHParser
public CurrentJHParser(InputStream input)
throws IOException
- Throws:
IOException
canParse
public static boolean canParse(InputStream input)
throws IOException
- Can this parser parse the input?
- Parameters:
input
-
- Returns:
- Whether this parser can parse the input.
- Throws:
IOException
nextEvent
public org.apache.hadoop.mapreduce.jobhistory.HistoryEvent nextEvent()
throws IOException
- Description copied from interface:
JobHistoryParser
- Get the next
HistoryEvent
- Specified by:
nextEvent
in interface JobHistoryParser
- Returns:
- the next
HistoryEvent
. If no more events left, return null.
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Throws:
IOException
Copyright © 2009 The Apache Software Foundation