|
||||||||||
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
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(java.lang.Enum<?> counterName)
Get the Counter for the given counterName . |
Counter |
getCounter(java.lang.String groupName,
java.lang.String counterName)
Get the Counter for the given groupName and
counterName . |
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 status)
Set the current status of the task to the given string. |
protected void |
setStatusString(java.lang.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 TaskAttemptContext
public java.lang.String getStatus()
getStatus
in interface TaskAttemptContext
public Counter getCounter(java.lang.Enum<?> counterName)
TaskAttemptContext
Counter
for the given counterName
.
getCounter
in interface TaskAttemptContext
counterName
- counter name
Counter
for the given counterName
public Counter getCounter(java.lang.String groupName, java.lang.String counterName)
TaskAttemptContext
Counter
for the given groupName
and
counterName
.
getCounter
in interface TaskAttemptContext
counterName
- counter name
Counter
for the given groupName
and
counterName
public void progress()
progress
in interface org.apache.hadoop.util.Progressable
protected void setStatusString(java.lang.String status)
public void setStatus(java.lang.String status)
setStatus
in interface TaskAttemptContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |