org.apache.tez.dag.app.dag
Interface TaskAttempt
- All Known Implementing Classes:
- TaskAttemptImpl
public interface TaskAttempt
Read only view of TaskAttempt.
getID
org.apache.tez.dag.records.TezTaskAttemptID getID()
getTaskID
org.apache.tez.dag.records.TezTaskID getTaskID()
getVertexID
org.apache.tez.dag.records.TezVertexID getVertexID()
getDAGID
org.apache.tez.dag.records.TezDAGID getDAGID()
getReport
TaskAttemptReport getReport()
getDiagnostics
List<String> getDiagnostics()
getCounters
org.apache.tez.common.counters.TezCounters getCounters()
getProgress
float getProgress()
getState
TaskAttemptState getState()
getStateNoLock
TaskAttemptState getStateNoLock()
isFinished
boolean isFinished()
- Has attempt reached the final state or not.
- Returns:
- true if it has finished, else false
getAssignedContainerID
org.apache.hadoop.yarn.api.records.ContainerId getAssignedContainerID()
- Returns:
- the container ID if a container is assigned, otherwise null.
getAssignedContainerMgrAddress
String getAssignedContainerMgrAddress()
- Returns:
- container mgr address if a container is assigned, otherwise null.
getNodeId
org.apache.hadoop.yarn.api.records.NodeId getNodeId()
- Returns:
- node's id if a container is assigned, otherwise null.
getNodeHttpAddress
String getNodeHttpAddress()
- Returns:
- node's http address if a container is assigned, otherwise null.
getNodeRackName
String getNodeRackName()
- Returns:
- node's rack name if a container is assigned, otherwise null.
getLaunchTime
long getLaunchTime()
- Returns:
- time at which container is launched. If container is not launched
yet, returns 0.
getFinishTime
long getFinishTime()
- Returns:
- attempt's finish time. If attempt is not finished
yet, returns 0.
getTask
Task getTask()
getIsRescheduled
boolean getIsRescheduled()
restoreFromEvent
TaskAttemptState restoreFromEvent(HistoryEvent event)
Copyright © 2014 Apache Software Foundation. All rights reserved.