public class JobBuilder extends Object
JobBuilder
builds one job. It processes a sequence of
HistoryEvent
s.构造器和说明 |
---|
JobBuilder(String jobID) |
限定符和类型 | 方法和说明 |
---|---|
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 © 2009 The Apache Software Foundation