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

    Constructors
    Constructor
    Description
    TaskAttemptEvent(org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId id, TaskAttemptEventType type)
    Create a new TaskAttemptEvent.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId
     

    Methods inherited from class org.apache.hadoop.yarn.event.AbstractEvent

    getTimestamp, getType, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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 attempt
      type - the type of event that happened.
  • Method Details

    • getTaskAttemptID

      public org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId getTaskAttemptID()