public class CurrentJHParser extends Object implements JobHistoryParser
JobHistoryParser
that parses JobHistory
files produced by
JobHistory
in the same source
code tree as rumen.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() |
HistoryEvent |
nextEvent()
Get the next
HistoryEvent |
public CurrentJHParser(InputStream input) throws IOException
IOException
public static boolean canParse(InputStream input) throws IOException
input
- IOException
public HistoryEvent nextEvent() throws IOException
JobHistoryParser
HistoryEvent
nextEvent
in interface JobHistoryParser
HistoryEvent
. If no more events left, return null.IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2013 Apache Software Foundation. All rights reserved.