| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.mapred.TaskTrackerMetricsSource
public class TaskTrackerMetricsSource
Instrumentation for metrics v2
| Field Summary | |
|---|---|
protected  TaskTracker | 
tt
 | 
| Constructor Summary | |
|---|---|
TaskTrackerMetricsSource(TaskTracker tt)
 | 
|
| Method Summary | |
|---|---|
 void | 
completeTask(TaskAttemptID t)
invoked when task attempt t succeeds  | 
 void | 
getMetrics(MetricsBuilder builder,
           boolean all)
Get metrics from the source  | 
 void | 
reportTaskEnd(TaskAttemptID t)
called when task t has just finished.  | 
 void | 
reportTaskLaunch(TaskAttemptID t,
                 File stdout,
                 File stderr)
Called just before task attempt t starts.  | 
 void | 
taskFailedPing(TaskAttemptID t)
 | 
 void | 
timedoutTask(TaskAttemptID t)
 | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected final TaskTracker tt
| Constructor Detail | 
|---|
public TaskTrackerMetricsSource(TaskTracker tt)
| Method Detail | 
|---|
public void getMetrics(MetricsBuilder builder,
                       boolean all)
MetricsSource
getMetrics in interface MetricsSourcebuilder - to contain the resulting metrics snapshotall - if true, return all metrics even if unchanged.public void completeTask(TaskAttemptID t)
public void timedoutTask(TaskAttemptID t)
public void taskFailedPing(TaskAttemptID t)
public void reportTaskLaunch(TaskAttemptID t,
                             File stdout,
                             File stderr)
stdout - the file containing standard out of the new taskstderr - the file containing standard error of the new taskpublic void reportTaskEnd(TaskAttemptID t)
t - 
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||