org.apache.hadoop.mapred
Class DefaultJobHistoryParser

java.lang.Object
  extended by org.apache.hadoop.mapred.DefaultJobHistoryParser

public class DefaultJobHistoryParser
extends Object

Default parser for job history files. It creates object model from job history file.


Constructor Summary
DefaultJobHistoryParser()
           
 
Method Summary
static void parseJobTasks(File jobHistoryFile, JobHistory.JobInfo job)
          Populates a JobInfo object from the job's history log file.
static Map<String,Map<String,JobHistory.JobInfo>> parseMasterIndex(File historyFile)
          Parses a master index file and returns a Map of (jobTrakerId - Map (job Id - JobHistory.JobInfo)).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultJobHistoryParser

public DefaultJobHistoryParser()
Method Detail

parseMasterIndex

public static Map<String,Map<String,JobHistory.JobInfo>> parseMasterIndex(File historyFile)
                                                                   throws IOException
Parses a master index file and returns a Map of (jobTrakerId - Map (job Id - JobHistory.JobInfo)).

Parameters:
historyFile - master index history file.
Returns:
a map of values, as described as described earlier.
Throws:
IOException

parseJobTasks

public static void parseJobTasks(File jobHistoryFile,
                                 JobHistory.JobInfo job)
                          throws IOException
Populates a JobInfo object from the job's history log file.

Parameters:
jobHistoryFile - history file for this job.
job - a precreated JobInfo object, should be non-null.
Throws:
IOException


Copyright © 2006 The Apache Software Foundation