org.apache.hadoop.mapreduce.task.reduce
Class DirectShuffleEventFetcher<K,V>

java.lang.Object
  extended by java.lang.Thread
      extended by org.apache.hadoop.mapreduce.task.reduce.DirectShuffleEventFetcher<K,V>
All Implemented Interfaces:
Runnable

public class DirectShuffleEventFetcher<K,V>
extends Thread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
DirectShuffleEventFetcher(org.apache.hadoop.mapreduce.TaskAttemptID reduce, org.apache.hadoop.mapred.TaskUmbilicalProtocol umbilical, org.apache.hadoop.mapreduce.task.reduce.ShuffleScheduler<K,V> scheduler, org.apache.hadoop.mapreduce.task.reduce.ExceptionReporter reporter, int maxEventsToFetch)
           
 
Method Summary
protected  int getMapCompletionEvents()
          Queries the TaskTracker for a set of map-completion events from a given event ID.
 void run()
           
 void shutDown()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DirectShuffleEventFetcher

public DirectShuffleEventFetcher(org.apache.hadoop.mapreduce.TaskAttemptID reduce,
                                 org.apache.hadoop.mapred.TaskUmbilicalProtocol umbilical,
                                 org.apache.hadoop.mapreduce.task.reduce.ShuffleScheduler<K,V> scheduler,
                                 org.apache.hadoop.mapreduce.task.reduce.ExceptionReporter reporter,
                                 int maxEventsToFetch)
Method Detail

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread

shutDown

public void shutDown()

getMapCompletionEvents

protected int getMapCompletionEvents()
                              throws IOException,
                                     InterruptedException
Queries the TaskTracker for a set of map-completion events from a given event ID.

Throws:
IOException
InterruptedException


Copyright © 2014 Apache Software Foundation. All Rights Reserved.