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