org.apache.hadoop.mapreduce.v2.app.job.event
Class TaskAttemptEvent

java.lang.Object
  extended by org.apache.hadoop.yarn.event.AbstractEvent<TaskAttemptEventType>
      extended by 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, TaskAttemptKillEvent, TaskAttemptRecoverEvent, TaskAttemptStatusUpdateEvent

public class TaskAttemptEvent
extends org.apache.hadoop.yarn.event.AbstractEvent<TaskAttemptEventType>

This class encapsulates task attempt related events.


Constructor Summary
TaskAttemptEvent(org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId id, TaskAttemptEventType type)
          Create a new TaskAttemptEvent.
 
Method Summary
 org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId getTaskAttemptID()
           
 
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 Detail

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 Detail

getTaskAttemptID

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


Copyright © 2014 Apache Software Foundation. All Rights Reserved.