org.apache.hadoop.tools.rumen
Class TaskAttemptInfo

java.lang.Object
  extended by org.apache.hadoop.tools.rumen.TaskAttemptInfo
Direct Known Subclasses:
MapTaskAttemptInfo, ReduceTaskAttemptInfo

public abstract class TaskAttemptInfo
extends Object

TaskAttemptInfo is a collection of statistics about a particular task-attempt gleaned from job-history of the job.


Field Summary
protected  org.apache.hadoop.mapred.TaskStatus.State state
           
protected  TaskInfo taskInfo
           
 
Constructor Summary
protected TaskAttemptInfo(org.apache.hadoop.mapred.TaskStatus.State state, TaskInfo taskInfo)
           
 
Method Summary
 org.apache.hadoop.mapred.TaskStatus.State getRunState()
          Get the final TaskStatus.State of the task-attempt.
abstract  long getRuntime()
          Get the total runtime for the task-attempt.
 TaskInfo getTaskInfo()
          Get the TaskInfo for the given task-attempt.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

state

protected final org.apache.hadoop.mapred.TaskStatus.State state

taskInfo

protected final TaskInfo taskInfo
Constructor Detail

TaskAttemptInfo

protected TaskAttemptInfo(org.apache.hadoop.mapred.TaskStatus.State state,
                          TaskInfo taskInfo)
Method Detail

getRunState

public org.apache.hadoop.mapred.TaskStatus.State getRunState()
Get the final TaskStatus.State of the task-attempt.

Returns:
the final State of the task-attempt

getRuntime

public abstract long getRuntime()
Get the total runtime for the task-attempt.

Returns:
the total runtime for the task-attempt

getTaskInfo

public TaskInfo getTaskInfo()
Get the TaskInfo for the given task-attempt.

Returns:
the TaskInfo for the given task-attempt


Copyright © 2009 The Apache Software Foundation