public class AMNodeImpl extends Object implements AMNode
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AMNodeImpl.ContainerAllocatedTransition |
protected static class |
AMNodeImpl.ContainerAllocatedWhileBlacklistedTransition |
protected static class |
AMNodeImpl.ContainerAllocatedWhileUnhealthyTransition |
protected static class |
AMNodeImpl.ContainerCompletedTransition |
protected static class |
AMNodeImpl.CountFailedTaskAttemptTransition |
protected static class |
AMNodeImpl.GenericErrorTransition |
protected static class |
AMNodeImpl.IgnoreBlacklistingDisabledTransition |
protected static class |
AMNodeImpl.IgnoreBlacklistingStateChangeTransition |
protected static class |
AMNodeImpl.NodeTurnedHealthyTransition |
protected static class |
AMNodeImpl.NodeTurnedUnhealthyTransition |
protected static class |
AMNodeImpl.TaskAttemptFailedTransition |
protected static class |
AMNodeImpl.TaskAttemptSucceededTransition |
protected static class |
AMNodeImpl.TaskAttemptSucceededWhileBlacklistedTransition |
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.hadoop.yarn.event.EventHandler |
eventHandler |
| Constructor and Description |
|---|
AMNodeImpl(org.apache.hadoop.yarn.api.records.NodeId nodeId,
int schedulerId,
int maxTaskFailuresPerNode,
org.apache.hadoop.yarn.event.EventHandler eventHandler,
boolean blacklistingEnabled,
boolean rescheduleOnUnhealthyNode,
AppContext appContext) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
blacklistSelf() |
void |
dagComplete(DAG dag) |
List<org.apache.hadoop.yarn.api.records.ContainerId> |
getContainers() |
org.apache.hadoop.yarn.api.records.NodeId |
getNodeId() |
AMNodeState |
getState() |
void |
handle(AMNodeEvent event) |
boolean |
isBlacklisted() |
boolean |
isUnhealthy() |
boolean |
isUsable() |
protected boolean |
qualifiesForBlacklisting() |
protected boolean |
registerBadNodeAndShouldBlacklist() |
public AMNodeImpl(org.apache.hadoop.yarn.api.records.NodeId nodeId,
int schedulerId,
int maxTaskFailuresPerNode,
org.apache.hadoop.yarn.event.EventHandler eventHandler,
boolean blacklistingEnabled,
boolean rescheduleOnUnhealthyNode,
AppContext appContext)
public org.apache.hadoop.yarn.api.records.NodeId getNodeId()
public AMNodeState getState()
public List<org.apache.hadoop.yarn.api.records.ContainerId> getContainers()
getContainers in interface AMNodepublic void handle(AMNodeEvent event)
handle in interface org.apache.hadoop.yarn.event.EventHandler<AMNodeEvent>protected boolean qualifiesForBlacklisting()
protected boolean registerBadNodeAndShouldBlacklist()
protected void blacklistSelf()
public boolean isUnhealthy()
isUnhealthy in interface AMNodepublic boolean isBlacklisted()
isBlacklisted in interface AMNodepublic void dagComplete(DAG dag)
dagComplete in interface AMNodeCopyright © 2020 Apache Software Foundation. All rights reserved.