|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.nutch.mapReduce.Task
Base class for tasks.
Constructor Summary | |
Task()
|
|
Task(String jobFile,
String taskId)
|
Method Summary | |
abstract org.apache.nutch.mapReduce.TaskRunner |
createRunner(TaskTracker tracker)
Return an approprate thread runner for this task. |
String |
getJobFile()
|
String |
getTaskId()
|
void |
readFields(DataInput in)
Reads the fields of this object from in . |
abstract void |
run(JobConf job,
TaskUmbilicalProtocol umbilical)
Run this task as a part of the named job. |
void |
setJobFile(String jobFile)
|
String |
toString()
|
void |
write(DataOutput out)
Writes the fields of this object to out . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Task()
public Task(String jobFile, String taskId)
Method Detail |
public void setJobFile(String jobFile)
public String getJobFile()
public String getTaskId()
public void write(DataOutput out) throws IOException
Writable
out
.
write
in interface Writable
IOException
public void readFields(DataInput in) throws IOException
Writable
in
. For efficiency,
implementations should attempt to re-use storage in the existing object
where possible.
readFields
in interface Writable
IOException
public String toString()
public abstract void run(JobConf job, TaskUmbilicalProtocol umbilical) throws IOException
umbilical
- for progress reports
IOException
public abstract org.apache.nutch.mapReduce.TaskRunner createRunner(TaskTracker tracker)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |