org.apache.hadoop.mapreduce.jobhistory
Class EventReader

java.lang.Object
  extended by org.apache.hadoop.mapreduce.jobhistory.EventReader
All Implemented Interfaces:
Closeable

@InterfaceAudience.Private
@InterfaceStability.Unstable
public class EventReader
extends Object
implements Closeable


Constructor Summary
EventReader(DataInputStream in)
          Create a new Event Reader
EventReader(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path name)
          Create a new Event Reader
 
Method Summary
 void close()
          Close the Event reader
 HistoryEvent getNextEvent()
          Get the next event from the stream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventReader

public EventReader(org.apache.hadoop.fs.FileSystem fs,
                   org.apache.hadoop.fs.Path name)
            throws IOException
Create a new Event Reader

Parameters:
fs -
name -
Throws:
IOException

EventReader

public EventReader(DataInputStream in)
            throws IOException
Create a new Event Reader

Parameters:
in -
Throws:
IOException
Method Detail

getNextEvent

public HistoryEvent getNextEvent()
                          throws IOException
Get the next event from the stream

Returns:
the next event
Throws:
IOException

close

public void close()
           throws IOException
Close the Event reader

Specified by:
close in interface Closeable
Throws:
IOException


Copyright © 2012 Apache Software Foundation. All Rights Reserved.