public class TaskTrackerMetricsSource extends Object implements MetricsSource
限定符和类型 | 字段和说明 |
---|---|
protected TaskTracker |
tt |
构造器和说明 |
---|
TaskTrackerMetricsSource(TaskTracker tt) |
限定符和类型 | 方法和说明 |
---|---|
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) |
protected final TaskTracker tt
public TaskTrackerMetricsSource(TaskTracker tt)
public void getMetrics(MetricsBuilder builder, boolean all)
MetricsSource
getMetrics
在接口中 MetricsSource
builder
- 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
- Copyright © 2009 The Apache Software Foundation