public class TaskAttemptFinishedEvent extends Object implements HistoryEvent
构造器和说明 |
---|
TaskAttemptFinishedEvent(TaskAttemptID id,
TaskType taskType,
String taskStatus,
long finishTime,
String hostname,
String state,
Counters counters)
Create an event to record successful finishes for setup and cleanup
attempts
|
限定符和类型 | 方法和说明 |
---|---|
TaskAttemptID |
getAttemptId()
Get the task attempt id
|
JhCounters |
getCounters()
Get the counters for the attempt
|
EventType |
getEventType()
Get the event type
|
long |
getFinishTime()
Get the attempt finish time
|
String |
getHostname()
Get the host where the attempt executed
|
String |
getState()
Get the state string
|
TaskID |
getTaskId()
Get the task ID
|
String |
getTaskStatus()
Get the task status
|
TaskType |
getTaskType()
Get the task type
|
public TaskAttemptFinishedEvent(TaskAttemptID id, TaskType taskType, String taskStatus, long finishTime, String hostname, String state, Counters counters)
id
- Attempt IDtaskType
- Type of tasktaskStatus
- Status of taskfinishTime
- Finish time of attempthostname
- Host where the attempt executedstate
- State stringcounters
- Counters for the attemptpublic TaskID getTaskId()
public TaskAttemptID getAttemptId()
public TaskType getTaskType()
public String getTaskStatus()
public long getFinishTime()
public String getHostname()
public String getState()
public JhCounters getCounters()
public EventType getEventType()
getEventType
在接口中 HistoryEvent
Copyright © 2009 The Apache Software Foundation