@SuppressWarnings("unchecked")
 @Override
 public void handle(TaskAttemptEvent event) {
   DAG dag = context.getCurrentDAG();
   Task task =
       dag.getVertex(event.getTaskAttemptID().getTaskID().getVertexID())
           .getTask(event.getTaskAttemptID().getTaskID());
   TaskAttempt attempt = task.getAttempt(event.getTaskAttemptID());
   ((EventHandler<TaskAttemptEvent>) attempt).handle(event);
 }
示例#2
0
 @Override
 public void handle(TaskAttemptEvent event) {
   events.add(event);
   ((TaskAttemptImpl) task.getAttempt(event.getTaskAttemptID())).handle(event);
 }