public class CurrentJHParser extends Object implements JobHistoryParser
JobHistoryParser that parses JobHistory files.| Constructor and Description |
|---|
CurrentJHParser(InputStream input) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canParse(InputStream input)
Can this parser parse the input?
|
void |
close() |
org.apache.hadoop.mapreduce.jobhistory.HistoryEvent |
nextEvent()
Get the next
HistoryEvent |
public CurrentJHParser(InputStream input) throws IOException
IOExceptionpublic static boolean canParse(InputStream input) throws IOException
input - IOExceptionpublic org.apache.hadoop.mapreduce.jobhistory.HistoryEvent nextEvent()
throws IOException
JobHistoryParserHistoryEventnextEvent in interface JobHistoryParserHistoryEvent. If no more events left, return null.IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2008–2020 Apache Software Foundation. All rights reserved.