public class JobBuilder extends Object
JobBuilder
builds one job. It processes a sequence of
HistoryEvent
s.Constructor and Description |
---|
JobBuilder(String jobID) |
Modifier and Type | Method and Description |
---|---|
ParsedJob |
build()
Request the builder to build the final object.
|
String |
getJobID() |
void |
process(HistoryEvent event)
Process one
HistoryEvent |
void |
process(Properties conf)
Process a collection of JobConf
Properties . |
public JobBuilder(String jobID)
public String getJobID()
public void process(HistoryEvent event)
HistoryEvent
event
- The HistoryEvent
to be processed.public void process(Properties conf)
Properties
. We do not restrict it
to be called once. It is okay to process a conf before, during or after the
events.conf
- The job conf properties to be added.public ParsedJob build()
JobBuilder
would accept no more events or job-conf properties.ParsedJob
object.Copyright © 2013 Apache Software Foundation. All rights reserved.