public class TaskHeartbeatHandler
extends org.apache.hadoop.service.AbstractService
Constructor and Description |
---|
TaskHeartbeatHandler(org.apache.hadoop.yarn.event.EventHandler eventHandler,
org.apache.hadoop.yarn.util.Clock clock,
int numThreads) |
Modifier and Type | Method and Description |
---|---|
long |
getTaskTimeOut() |
boolean |
hasRecentlyUnregistered(org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId attemptID) |
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) |
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop
public TaskHeartbeatHandler(org.apache.hadoop.yarn.event.EventHandler eventHandler, org.apache.hadoop.yarn.util.Clock clock, int numThreads)
protected void serviceInit(org.apache.hadoop.conf.Configuration conf) throws Exception
serviceInit
in class org.apache.hadoop.service.AbstractService
Exception
protected void serviceStart() throws Exception
serviceStart
in class org.apache.hadoop.service.AbstractService
Exception
protected void serviceStop() throws Exception
serviceStop
in class org.apache.hadoop.service.AbstractService
Exception
public void progressing(org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId attemptID)
public void register(org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId attemptID)
public void unregister(org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId attemptID)
public boolean hasRecentlyUnregistered(org.apache.hadoop.mapreduce.v2.api.records.TaskAttemptId attemptID)
@VisibleForTesting public long getTaskTimeOut()
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.