org.apache.hadoop.tools.rumen
Class JobBuilder

java.lang.Object
  extended by org.apache.hadoop.tools.rumen.JobBuilder

public class JobBuilder
extends Object

JobBuilder builds one job. It processes a sequence of HistoryEvents.


Constructor Summary
JobBuilder(String jobID)
           
 
Method Summary
 LoggedJob build()
          Request the builder to build the final object.
 String getJobID()
           
 void process(org.apache.hadoop.mapreduce.jobhistory.HistoryEvent event)
          Process one HistoryEvent
 void process(Properties conf)
          Process a collection of JobConf Properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobBuilder

public JobBuilder(String jobID)
Method Detail

getJobID

public String getJobID()

process

public void process(org.apache.hadoop.mapreduce.jobhistory.HistoryEvent event)
Process one HistoryEvent

Parameters:
event - The HistoryEvent to be processed.

process

public void process(Properties conf)
Process a collection of JobConf Properties. We do not restrict it to be called once. It is okay to process a conf before, during or after the events.

Parameters:
conf - The job conf properties to be added.

build

public LoggedJob build()
Request the builder to build the final object. Once called, the JobBuilder would accept no more events or job-conf properties.

Returns:
Parsed LoggedJob object.


Copyright © 2009 The Apache Software Foundation