public abstract class TaskAttemptImpl extends Object implements TaskAttempt, EventHandler<TaskAttemptEvent>
| Modifier and Type | Field and Description |
|---|---|
protected JobConf |
conf |
Container |
container |
protected Set<String> |
dataLocalHosts |
protected Set<String> |
dataLocalRacks |
protected EventHandler |
eventHandler |
protected Path |
jobFile |
protected int |
partition |
| Constructor and Description |
|---|
TaskAttemptImpl(TaskId taskId,
int i,
EventHandler eventHandler,
TaskAttemptListener taskAttemptListener,
Path jobFile,
int partition,
JobConf conf,
String[] dataLocalHosts,
Token<JobTokenIdentifier> jobToken,
Credentials credentials,
Clock clock,
AppContext appContext) |
protected final JobConf conf
protected final Path jobFile
protected final int partition
protected EventHandler eventHandler
public Container container
public TaskAttemptImpl(TaskId taskId, int i, EventHandler eventHandler, TaskAttemptListener taskAttemptListener, Path jobFile, int partition, JobConf conf, String[] dataLocalHosts, Token<JobTokenIdentifier> jobToken, Credentials credentials, Clock clock, AppContext appContext)
public ContainerId getAssignedContainerID()
getAssignedContainerID in interface TaskAttemptpublic String getAssignedContainerMgrAddress()
getAssignedContainerMgrAddress in interface TaskAttemptpublic long getLaunchTime()
getLaunchTime in interface TaskAttemptpublic long getFinishTime()
getFinishTime in interface TaskAttemptpublic long getShuffleFinishTime()
getShuffleFinishTime in interface TaskAttemptpublic long getSortFinishTime()
getSortFinishTime in interface TaskAttemptpublic int getShufflePort()
getShufflePort in interface TaskAttemptpublic NodeId getNodeId()
getNodeId in interface TaskAttemptpublic String getNodeHttpAddress()
getNodeHttpAddress in interface TaskAttemptpublic String getNodeRackName()
getNodeRackName in interface TaskAttemptprotected abstract Task createRemoteTask()
public TaskAttemptId getID()
getID in interface TaskAttemptpublic boolean isFinished()
TaskAttemptisFinished in interface TaskAttemptpublic TaskAttemptReport getReport()
getReport in interface TaskAttemptpublic List<String> getDiagnostics()
getDiagnostics in interface TaskAttemptpublic Counters getCounters()
getCounters in interface TaskAttemptpublic float getProgress()
getProgress in interface TaskAttemptpublic Phase getPhase()
getPhase in interface TaskAttemptpublic TaskAttemptState getState()
getState in interface TaskAttemptpublic void handle(TaskAttemptEvent event)
handle in interface EventHandler<TaskAttemptEvent>public TaskAttemptStateInternal getInternalState()
public Locality getLocality()
public void setLocality(Locality locality)
public Avataar getAvataar()
public void setAvataar(Avataar avataar)
public TaskAttemptStateInternal recover(JobHistoryParser.TaskAttemptInfo taInfo, OutputCommitter committer, boolean recoverOutput)
protected boolean isIP(String src)
Copyright © 2013 Apache Software Foundation. All rights reserved.