public class LoggedTask extends Object implements DeepCompare
LoggedTask
represents a [hadoop] task that is part of a hadoop job.
It knows about the [pssibly empty] sequence of attempts, its I/O footprint,
and its runtime.
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) |
List<LoggedTaskAttempt> |
getAttempts() |
long |
getFinishTime() |
long |
getInputBytes() |
long |
getInputRecords() |
long |
getOutputBytes() |
long |
getOutputRecords() |
List<LoggedLocation> |
getPreferredLocations() |
long |
getStartTime() |
String |
getTaskID() |
Pre21JobHistoryConstants.Values |
getTaskStatus() |
Pre21JobHistoryConstants.Values |
getTaskType() |
void |
incorporateCounters(JhCounters counters) |
void |
setUnknownAttribute(String attributeName,
Object ignored) |
public long getInputBytes()
public long getInputRecords()
public long getOutputBytes()
public long getOutputRecords()
public String getTaskID()
public long getStartTime()
public long getFinishTime()
public List<LoggedTaskAttempt> getAttempts()
public List<LoggedLocation> getPreferredLocations()
public Pre21JobHistoryConstants.Values getTaskStatus()
public Pre21JobHistoryConstants.Values getTaskType()
public void incorporateCounters(JhCounters counters)
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