|
|||||||||||
| 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
Writableout.
write in interface WritableIOException
public void readFields(DataInput in)
throws IOException
Writablein. For efficiency,
implementations should attempt to re-use storage in the existing object
where possible.
readFields in interface WritableIOExceptionpublic String toString()
public abstract void run(JobConf job,
TaskUmbilicalProtocol umbilical)
throws IOException
umbilical - for progress reports
IOExceptionpublic 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 | ||||||||||