public abstract class TaskAttemptInfo extends Object
TaskAttemptInfo
is a collection of statistics about a particular
task-attempt gleaned from job-history of the job.Modifier and Type | Field and Description |
---|---|
protected List<List<Integer>> |
allSplits |
protected TaskStatus.State |
state |
protected TaskInfo |
taskInfo |
Modifier | Constructor and Description |
---|---|
protected |
TaskAttemptInfo(TaskStatus.State state,
TaskInfo taskInfo) |
protected |
TaskAttemptInfo(TaskStatus.State state,
TaskInfo taskInfo,
List<List<Integer>> allSplits) |
Modifier and Type | Method and Description |
---|---|
TaskStatus.State |
getRunState()
Get the final
TaskStatus.State of the task-attempt. |
abstract long |
getRuntime()
Get the total runtime for the task-attempt.
|
List<Integer> |
getSplitVector(LoggedTaskAttempt.SplitVectorKind kind) |
TaskInfo |
getTaskInfo()
Get the
TaskInfo for the given task-attempt. |
protected final TaskStatus.State state
protected final TaskInfo taskInfo
protected TaskAttemptInfo(TaskStatus.State state, TaskInfo taskInfo, List<List<Integer>> allSplits)
protected TaskAttemptInfo(TaskStatus.State state, TaskInfo taskInfo)
public TaskStatus.State getRunState()
TaskStatus.State
of the task-attempt.State
of the task-attemptpublic abstract long getRuntime()
public TaskInfo getTaskInfo()
TaskInfo
for the given task-attempt.TaskInfo
for the given task-attemptpublic List<Integer> getSplitVector(LoggedTaskAttempt.SplitVectorKind kind)
Copyright © 2013 Apache Software Foundation. All rights reserved.