|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.mapreduce.task.JobContextImpl
org.apache.hadoop.mapreduce.task.TaskAttemptContextImpl
@InterfaceAudience.Private @InterfaceStability.Unstable public class TaskAttemptContextImpl
The context for task attempts.
| Nested Class Summary | |
|---|---|
static class |
TaskAttemptContextImpl.DummyReporter
|
| Field Summary |
|---|
| Fields inherited from class org.apache.hadoop.mapreduce.task.JobContextImpl |
|---|
conf, credentials, ugi |
| Constructor Summary | |
|---|---|
TaskAttemptContextImpl(org.apache.hadoop.conf.Configuration conf,
TaskAttemptID taskId)
|
|
TaskAttemptContextImpl(org.apache.hadoop.conf.Configuration conf,
TaskAttemptID taskId,
StatusReporter reporter)
|
|
| Method Summary | |
|---|---|
Counter |
getCounter(Enum<?> counterName)
Get the Counter for the given counterName. |
Counter |
getCounter(String groupName,
String counterName)
Get the Counter for the given groupName and
counterName. |
float |
getProgress()
The current progress of the task attempt. |
String |
getStatus()
Get the last set status message. |
TaskAttemptID |
getTaskAttemptID()
Get the unique name for this task attempt. |
void |
progress()
Report progress. |
void |
setStatus(String status)
Set the current status of the task to the given string. |
protected void |
setStatusString(String status)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TaskAttemptContextImpl(org.apache.hadoop.conf.Configuration conf,
TaskAttemptID taskId)
public TaskAttemptContextImpl(org.apache.hadoop.conf.Configuration conf,
TaskAttemptID taskId,
StatusReporter reporter)
| Method Detail |
|---|
public TaskAttemptID getTaskAttemptID()
getTaskAttemptID in interface TaskAttemptContextpublic String getStatus()
getStatus in interface TaskAttemptContextpublic Counter getCounter(Enum<?> counterName)
TaskAttemptContextCounter for the given counterName.
getCounter in interface TaskAttemptContextcounterName - counter name
Counter for the given counterName
public Counter getCounter(String groupName,
String counterName)
TaskAttemptContextCounter for the given groupName and
counterName.
getCounter in interface TaskAttemptContextcounterName - counter name
Counter for the given groupName and
counterNamepublic void progress()
progress in interface org.apache.hadoop.util.Progressableprotected void setStatusString(String status)
public void setStatus(String status)
setStatus in interface TaskAttemptContextpublic float getProgress()
TaskAttemptContext
getProgress in interface TaskAttemptContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||