protected class Task.TaskReporter extends StatusReporter implements Runnable, Reporter
| 限定符和类型 | 方法和说明 |
|---|---|
Counters.Counter |
getCounter(Enum<?> name)
Get the
Counters.Counter of the given group with the given name. |
Counters.Counter |
getCounter(String group,
String name)
Get the
Counters.Counter of the given group with the given name. |
InputSplit |
getInputSplit()
Get the
InputSplit object for a map. |
float |
getProgress()
Get the current progress.
|
void |
incrCounter(Enum key,
long amount)
Increments the counter identified by the key, which can be of
any
Enum type, by the specified amount. |
void |
incrCounter(String group,
String counter,
long amount)
Increments the counter identified by the group and counter name
by the specified amount.
|
void |
progress()
Report progress to the Hadoop framework.
|
void |
run()
The communication thread handles communication with the parent (Task Tracker).
|
void |
setInputSplit(InputSplit split) |
void |
setProgress(float progress) |
void |
setStatus(String status)
Set the status description for the task.
|
void |
startCommunicationThread() |
void |
stopCommunicationThread() |
public void setStatus(String status)
ReportersetStatus 在接口中 ReportersetStatus 在类中 StatusReporterstatus - brief description of the current status.public void setProgress(float progress)
public float getProgress()
StatusReportergetProgress 在接口中 ReportergetProgress 在类中 StatusReporterpublic void progress()
Progressableprogress 在接口中 Progressableprogress 在类中 StatusReporterpublic Counters.Counter getCounter(String group, String name)
ReporterCounters.Counter of the given group with the given name.getCounter 在接口中 ReportergetCounter 在类中 StatusReportergroup - counter groupname - counter nameCounter of the given group/name.public Counters.Counter getCounter(Enum<?> name)
ReporterCounters.Counter of the given group with the given name.getCounter 在接口中 ReportergetCounter 在类中 StatusReportername - counter nameCounter of the given group/name.public void incrCounter(Enum key, long amount)
ReporterEnum type, by the specified amount.incrCounter 在接口中 Reporterkey - key to identify the counter to be incremented. The key can be
be any Enum.amount - A non-negative amount by which the counter is to
be incremented.public void incrCounter(String group, String counter, long amount)
ReporterincrCounter 在接口中 Reportergroup - name to identify the group of the counter to be incremented.counter - name to identify the counter within the group.amount - A non-negative amount by which the counter is to
be incremented.public void setInputSplit(InputSplit split)
public InputSplit getInputSplit() throws UnsupportedOperationException
ReporterInputSplit object for a map.getInputSplit 在接口中 ReporterInputSplit that the map is reading from.UnsupportedOperationException - if called outside a mapperpublic void run()
public void startCommunicationThread()
public void stopCommunicationThread()
throws InterruptedException
Copyright © 2009 The Apache Software Foundation