@InterfaceAudience.Private @InterfaceStability.Unstable public class TaskAttemptStartedEvent extends Object implements HistoryEvent
Constructor and Description |
---|
TaskAttemptStartedEvent(TaskAttemptID attemptId,
TaskType taskType,
long startTime,
String trackerName,
int httpPort,
int shufflePort,
org.apache.hadoop.yarn.api.records.ContainerId containerId,
String locality,
String avataar)
Create an event to record the start of an attempt
|
TaskAttemptStartedEvent(TaskAttemptID attemptId,
TaskType taskType,
long startTime,
String trackerName,
int httpPort,
int shufflePort,
String locality,
String avataar) |
Modifier and Type | Method and Description |
---|---|
String |
getAvataar()
Get the avataar
|
org.apache.hadoop.yarn.api.records.ContainerId |
getContainerId()
Get the ContainerId
|
Object |
getDatum()
Return the Avro datum wrapped by this.
|
EventType |
getEventType()
Get the event type
|
int |
getHttpPort()
Get the HTTP port
|
String |
getLocality()
Get the locality
|
int |
getShufflePort()
Get the shuffle port
|
long |
getStartTime()
Get the start time
|
TaskAttemptID |
getTaskAttemptId()
Get the attempt id
|
TaskID |
getTaskId()
Get the task id
|
TaskType |
getTaskType()
Get the task type
|
String |
getTrackerName()
Get the tracker name
|
void |
setDatum(Object datum)
Set the Avro datum wrapped by this.
|
public TaskAttemptStartedEvent(TaskAttemptID attemptId, TaskType taskType, long startTime, String trackerName, int httpPort, int shufflePort, org.apache.hadoop.yarn.api.records.ContainerId containerId, String locality, String avataar)
attemptId
- Id of the attempttaskType
- Type of taskstartTime
- Start time of the attempttrackerName
- Name of the Task Tracker where attempt is runninghttpPort
- The port number of the trackershufflePort
- The shuffle port number of the containercontainerId
- The containerId for the task attempt.locality
- The locality of the task attemptavataar
- The avataar of the task attemptpublic TaskAttemptStartedEvent(TaskAttemptID attemptId, TaskType taskType, long startTime, String trackerName, int httpPort, int shufflePort, String locality, String avataar)
public Object getDatum()
HistoryEvent
getDatum
in interface HistoryEvent
public void setDatum(Object datum)
HistoryEvent
setDatum
in interface HistoryEvent
public TaskID getTaskId()
public String getTrackerName()
public long getStartTime()
public TaskType getTaskType()
public int getHttpPort()
public int getShufflePort()
public TaskAttemptID getTaskAttemptId()
public EventType getEventType()
getEventType
in interface HistoryEvent
public org.apache.hadoop.yarn.api.records.ContainerId getContainerId()
public String getLocality()
public String getAvataar()
Copyright © 2017 Apache Software Foundation. All Rights Reserved.