org.apache.hama.bsp
Class BSPTask

java.lang.Object
  extended by org.apache.hama.bsp.Task
      extended by org.apache.hama.bsp.BSPTask
All Implemented Interfaces:
org.apache.hadoop.io.Writable

public class BSPTask
extends Task

Base class for tasks.


Field Summary
 
Fields inherited from class org.apache.hama.bsp.Task
jobFile, jobId, lDirAlloc, LOG, partition, taskId
 
Constructor Summary
BSPTask()
           
BSPTask(BSPJobID jobId, String jobFile, TaskAttemptID taskid, int partition)
           
 
Method Summary
 BSPTaskRunner createRunner(GroomServer groom)
           
 BSPJob getConf()
           
 void run(BSPJob job, BSPPeerProtocol umbilical)
          Run this task as a part of the named job.
 void setConf(BSPJob conf)
           
 
Methods inherited from class org.apache.hama.bsp.Task
done, getJobFile, getJobID, getPartition, getTaskAttemptId, getTaskID, readFields, setJobFile, toString, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BSPTask

public BSPTask()

BSPTask

public BSPTask(BSPJobID jobId,
               String jobFile,
               TaskAttemptID taskid,
               int partition)
Method Detail

createRunner

public BSPTaskRunner createRunner(GroomServer groom)
Specified by:
createRunner in class Task

run

public void run(BSPJob job,
                BSPPeerProtocol umbilical)
         throws IOException
Description copied from class: Task
Run this task as a part of the named job. This method is executed in the child process.

Specified by:
run in class Task
umbilical - for progress reports
Throws:
IOException

getConf

public BSPJob getConf()
Specified by:
getConf in class Task

setConf

public void setConf(BSPJob conf)
Specified by:
setConf in class Task


Copyright © 2011 The Apache Software Foundation