org.apache.hadoop.mapreduce.v2.app
Class TaskHeartbeatHandler

java.lang.Object
  extended by org.apache.hadoop.service.AbstractService
      extended by org.apache.hadoop.mapreduce.v2.app.TaskHeartbeatHandler
All Implemented Interfaces:
Closeable, org.apache.hadoop.service.Service

public class TaskHeartbeatHandler
extends org.apache.hadoop.service.AbstractService

This class keeps track of tasks that have already been launched. It determines if a task is alive and running or marks a task as dead if it does not hear from it for a long time.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hadoop.service.Service
org.apache.hadoop.service.Service.STATE
 
Constructor Summary
TaskHeartbeatHandler(org.apache.hadoop.yarn.event.EventHandler eventHandler, org.apache.hadoop.yarn.util.Clock clock, int numThreads)
           
 
Method Summary
 void progressing(org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId attemptID)
           
 void register(org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId attemptID)
           
protected  void serviceInit(org.apache.hadoop.conf.Configuration conf)
           
protected  void serviceStart()
           
protected  void serviceStop()
           
 void unregister(org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId attemptID)
           
 
Methods inherited from class org.apache.hadoop.service.AbstractService
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TaskHeartbeatHandler

public TaskHeartbeatHandler(org.apache.hadoop.yarn.event.EventHandler eventHandler,
                            org.apache.hadoop.yarn.util.Clock clock,
                            int numThreads)
Method Detail

serviceInit

protected void serviceInit(org.apache.hadoop.conf.Configuration conf)
                    throws Exception
Overrides:
serviceInit in class org.apache.hadoop.service.AbstractService
Throws:
Exception

serviceStart

protected void serviceStart()
                     throws Exception
Overrides:
serviceStart in class org.apache.hadoop.service.AbstractService
Throws:
Exception

serviceStop

protected void serviceStop()
                    throws Exception
Overrides:
serviceStop in class org.apache.hadoop.service.AbstractService
Throws:
Exception

progressing

public void progressing(org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId attemptID)

register

public void register(org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId attemptID)

unregister

public void unregister(org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId attemptID)


Copyright © 2014 Apache Software Foundation. All Rights Reserved.