public class AMNodeTracker extends org.apache.hadoop.service.AbstractService implements org.apache.hadoop.yarn.event.EventHandler<AMNodeEvent>
| Constructor and Description |
|---|
AMNodeTracker(org.apache.hadoop.yarn.event.EventHandler eventHandler,
AppContext appContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
dagComplete(DAG dag) |
AMNode |
get(org.apache.hadoop.yarn.api.records.NodeId nodeId,
int schedulerId) |
int |
getNumNodes(int schedulerId)
Retrieve the number of nodes from this source on which containers may be running
This number may differ from the total number of nodes available from the source
|
void |
handle(AMNodeEvent rEvent) |
boolean |
isBlacklistingIgnored(int schedulerId) |
void |
nodeSeen(org.apache.hadoop.yarn.api.records.NodeId nodeId,
int schedulerId) |
void |
serviceInit(org.apache.hadoop.conf.Configuration conf) |
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, serviceStart, serviceStop, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStoppublic AMNodeTracker(org.apache.hadoop.yarn.event.EventHandler eventHandler,
AppContext appContext)
public void serviceInit(org.apache.hadoop.conf.Configuration conf)
serviceInit in class org.apache.hadoop.service.AbstractServicepublic void nodeSeen(org.apache.hadoop.yarn.api.records.NodeId nodeId,
int schedulerId)
public void handle(AMNodeEvent rEvent)
handle in interface org.apache.hadoop.yarn.event.EventHandler<AMNodeEvent>public AMNode get(org.apache.hadoop.yarn.api.records.NodeId nodeId, int schedulerId)
public int getNumNodes(int schedulerId)
schedulerId - the schedulerId for which the node count is required@InterfaceAudience.Private public boolean isBlacklistingIgnored(int schedulerId)
public void dagComplete(DAG dag)
Copyright © 2020 Apache Software Foundation. All rights reserved.