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.Modifier and Type | Class and Description |
---|---|
static class |
LoggedTaskAttempt.SplitVectorKind |
public List<List<Integer>> allSplitVectors()
LoggedTaskAttempt.SplitVectorKind
. Do NOT use hard-coded
indices within the return for this with a hard-coded
index to get individual values; use
SplitVectorKind.get(LoggedTaskAttempt)
instead.public long getShuffleFinished()
public long getSortFinished()
public TaskAttemptID getAttemptID()
public Pre21JobHistoryConstants.Values getResult()
public long getStartTime()
public long getFinishTime()
public NodeName 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
in interface 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 © 2013 Apache Software Foundation. All rights reserved.