Class TaskAttemptEvent
java.lang.Object
org.apache.hadoop.yarn.event.AbstractEvent<TaskAttemptEventType>
org.apache.hadoop.mapreduce.v2.app.job.event.TaskAttemptEvent
- All Implemented Interfaces:
org.apache.hadoop.yarn.event.Event<TaskAttemptEventType>
- Direct Known Subclasses:
TaskAttemptContainerAssignedEvent,TaskAttemptContainerLaunchedEvent,TaskAttemptDiagnosticsUpdateEvent,TaskAttemptFailEvent,TaskAttemptKillEvent,TaskAttemptRecoverEvent,TaskAttemptStatusUpdateEvent,TaskAttemptTooManyFetchFailureEvent
public class TaskAttemptEvent
extends org.apache.hadoop.yarn.event.AbstractEvent<TaskAttemptEventType>
This class encapsulates task attempt related events.
-
Constructor Summary
ConstructorsConstructorDescriptionTaskAttemptEvent(org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId id, TaskAttemptEventType type) Create a new TaskAttemptEvent. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.mapreduce.v2.api.records.TaskAttemptIdMethods inherited from class org.apache.hadoop.yarn.event.AbstractEvent
getTimestamp, getType, toString
-
Constructor Details
-
TaskAttemptEvent
public TaskAttemptEvent(org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId id, TaskAttemptEventType type) Create a new TaskAttemptEvent.- Parameters:
id- the id of the task attempttype- the type of event that happened.
-
-
Method Details
-
getTaskAttemptID
public org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId getTaskAttemptID()
-