org.apache.hama.bsp
Class TaskAttemptContext
java.lang.Object
org.apache.hama.bsp.BSPJobContext
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TaskAttemptContext
public TaskAttemptContext(org.apache.hadoop.conf.Configuration conf,
TaskAttemptID taskId)
getTaskAttemptID
public TaskAttemptID getTaskAttemptID()
- Get the unique name for this task attempt.
setStatus
public void setStatus(String msg)
throws IOException
- Set the current status of the task to the given string.
- Throws:
IOException
getStatus
public 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 © 2011 The Apache Software Foundation