public class LoggedTaskAttempt extends Object implements DeepCompare
LoggedTaskAttempt
represents an attempt to run an hadoop task in a
hadoop job. Note that a task can have several attempts.
All of the public methods are simply accessors for the instance variables we
want to write out in the JSON files.限定符和类型 | 方法和说明 |
---|---|
void |
deepCompare(DeepCompare comparand,
TreePath loc) |
String |
getAttemptID() |
long |
getCombineInputRecords() |
long |
getFileBytesRead() |
long |
getFileBytesWritten() |
long |
getFinishTime() |
long |
getHdfsBytesRead() |
long |
getHdfsBytesWritten() |
String |
getHostName() |
LoggedLocation |
getLocation() |
long |
getMapInputBytes() |
long |
getMapInputRecords() |
long |
getMapOutputBytes() |
long |
getMapOutputRecords() |
long |
getReduceInputGroups() |
long |
getReduceInputRecords() |
long |
getReduceOutputRecords() |
long |
getReduceShuffleBytes() |
ResourceUsageMetrics |
getResourceUsageMetrics() |
Pre21JobHistoryConstants.Values |
getResult() |
long |
getShuffleFinished() |
long |
getSortFinished() |
long |
getSpilledRecords() |
long |
getStartTime() |
void |
incorporateCounters(JhCounters counters) |
void |
setUnknownAttribute(String attributeName,
Object ignored) |
public long getShuffleFinished()
public long getSortFinished()
public String getAttemptID()
public Pre21JobHistoryConstants.Values getResult()
public long getStartTime()
public long getFinishTime()
public String getHostName()
public long getHdfsBytesRead()
public long getHdfsBytesWritten()
public long getFileBytesRead()
public long getFileBytesWritten()
public long getMapInputRecords()
public long getMapOutputBytes()
public long getMapOutputRecords()
public long getCombineInputRecords()
public long getReduceInputGroups()
public long getReduceInputRecords()
public long getReduceShuffleBytes()
public long getReduceOutputRecords()
public long getSpilledRecords()
public LoggedLocation getLocation()
public long getMapInputBytes()
public void incorporateCounters(JhCounters counters)
public ResourceUsageMetrics getResourceUsageMetrics()
public void deepCompare(DeepCompare comparand, TreePath loc) throws DeepInequalityException
deepCompare
在接口中 DeepCompare
comparand
- the other comparand that's being compared to meloc
- the path that got to me. In the root, myLocation is null. To
process the scalar foo
field of the root we will make a
recursive call with a TreePath
whose fieldName
is
"bar"
and whose index
is -1 and whose parent
is null
. To process the plural bar
field
of the root we will make a recursive call with a TreePath
whose fieldName is "foo"
and whose index
is -1 and
whose parent
is also null
.DeepInequalityException
Copyright © 2009 The Apache Software Foundation