org.apache.hama.bsp
Class TaskAttemptContext

java.lang.Object
  extended by org.apache.hama.bsp.BSPJobContext
      extended by org.apache.hama.bsp.TaskAttemptContext
All Implemented Interfaces:
org.apache.hadoop.util.Progressable

public class TaskAttemptContext
extends BSPJobContext
implements org.apache.hadoop.util.Progressable

The context for task attempts.


Field Summary
 
Fields inherited from class org.apache.hama.bsp.BSPJobContext
conf, INPUT_FORMAT_CLASS_ATTR, OUTPUT_FORMAT_CLASS_ATTR, WORK_CLASS_ATTR, WORKING_DIR
 
Constructor Summary
TaskAttemptContext(org.apache.hadoop.conf.Configuration conf, TaskAttemptID taskId)
           
 
Method Summary
 java.lang.String getStatus()
          Get the last set status message.
 TaskAttemptID getTaskAttemptID()
          Get the unique name for this task attempt.
 void progress()
          Report progress.
 void setStatus(java.lang.String msg)
          Set the current status of the task to the given string.
 
Methods inherited from class org.apache.hama.bsp.BSPJobContext
get, getConf, getInt, getJar, getJobID, getJobName, getLocalPath, getUser, getWorkingDirectory, writeXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskAttemptContext

public TaskAttemptContext(org.apache.hadoop.conf.Configuration conf,
                          TaskAttemptID taskId)
Method Detail

getTaskAttemptID

public TaskAttemptID getTaskAttemptID()
Get the unique name for this task attempt.


setStatus

public void setStatus(java.lang.String msg)
               throws java.io.IOException
Set the current status of the task to the given string.

Throws:
java.io.IOException

getStatus

public java.lang.String getStatus()
Get the last set status message.

Returns:
the current status message

progress

public void progress()
Report progress. The subtypes actually do work in this method.

Specified by:
progress in interface org.apache.hadoop.util.Progressable


Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.