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

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

public class TaskHeartbeatHandler
extends org.apache.hadoop.yarn.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.yarn.service.Service
org.apache.hadoop.yarn.service.Service.STATE
 
Constructor Summary
TaskHeartbeatHandler(org.apache.hadoop.yarn.event.EventHandler eventHandler, org.apache.hadoop.yarn.Clock clock, int numThreads)
           
 
Method Summary
 void init(org.apache.hadoop.conf.Configuration conf)
           
 void receivedPing(org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId attemptID)
           
 void register(org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId attemptID)
           
 void start()
           
 void stop()
           
 void unregister(org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId attemptID)
           
 
Methods inherited from class org.apache.hadoop.yarn.service.AbstractService
getConfig, getName, getServiceState, getStartTime, register, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskHeartbeatHandler

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

init

public void init(org.apache.hadoop.conf.Configuration conf)
Specified by:
init in interface org.apache.hadoop.yarn.service.Service
Overrides:
init in class org.apache.hadoop.yarn.service.AbstractService

start

public void start()
Specified by:
start in interface org.apache.hadoop.yarn.service.Service
Overrides:
start in class org.apache.hadoop.yarn.service.AbstractService

stop

public void stop()
Specified by:
stop in interface org.apache.hadoop.yarn.service.Service
Overrides:
stop in class org.apache.hadoop.yarn.service.AbstractService

receivedPing

public void receivedPing(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 © 2012 Apache Software Foundation. All Rights Reserved.