public class TaskAttemptStartedEvent extends Object implements HistoryEvent
构造器和说明 |
---|
TaskAttemptStartedEvent(TaskAttemptID attemptId,
TaskType taskType,
long startTime,
String trackerName,
int httpPort,
String locality,
String avataar)
Create an event to record the start of an attempt
|
限定符和类型 | 方法和说明 |
---|---|
String |
getAvataar()
Get the avataar of the task attempt
|
EventType |
getEventType()
Get the event type
|
int |
getHttpPort()
Get the HTTP port
|
String |
getLocality()
Get the locality of the task attempt
|
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
|
public TaskAttemptStartedEvent(TaskAttemptID attemptId, TaskType taskType, long startTime, String trackerName, int httpPort, 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 trackerlocality
- the locality of the task attemptavataar
- the avataar of the task attemptpublic TaskID getTaskId()
public String getTrackerName()
public long getStartTime()
public TaskType getTaskType()
public int getHttpPort()
public TaskAttemptID getTaskAttemptId()
public String getLocality()
public String getAvataar()
public EventType getEventType()
getEventType
在接口中 HistoryEvent
Copyright © 2009 The Apache Software Foundation