org.apache.tez.dag.app.rm.node
Class AMNodeImpl

java.lang.Object
  extended by org.apache.tez.dag.app.rm.node.AMNodeImpl
All Implemented Interfaces:
org.apache.hadoop.yarn.event.EventHandler<AMNodeEvent>, AMNode

public class AMNodeImpl
extends Object
implements AMNode


Nested Class Summary
protected static class AMNodeImpl.ContainerAllocatedTransition
           
protected static class AMNodeImpl.ContainerAllocatedWhileBlacklistedTransition
           
protected static class AMNodeImpl.ContainerAllocatedWhileUnhealthyTransition
           
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
           
 
Field Summary
protected  org.apache.hadoop.yarn.event.EventHandler eventHandler
           
 
Constructor Summary
AMNodeImpl(org.apache.hadoop.yarn.api.records.NodeId nodeId, int maxTaskFailuresPerNode, org.apache.hadoop.yarn.event.EventHandler eventHandler, boolean blacklistingEnabled, AppContext appContext)
           
 
Method Summary
protected  void blacklistSelf()
           
 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 shouldBlacklistNode()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

eventHandler

protected org.apache.hadoop.yarn.event.EventHandler eventHandler
Constructor Detail

AMNodeImpl

public AMNodeImpl(org.apache.hadoop.yarn.api.records.NodeId nodeId,
                  int maxTaskFailuresPerNode,
                  org.apache.hadoop.yarn.event.EventHandler eventHandler,
                  boolean blacklistingEnabled,
                  AppContext appContext)
Method Detail

getNodeId

public org.apache.hadoop.yarn.api.records.NodeId getNodeId()
Specified by:
getNodeId in interface AMNode

getState

public AMNodeState getState()
Specified by:
getState in interface AMNode

getContainers

public List<org.apache.hadoop.yarn.api.records.ContainerId> getContainers()
Specified by:
getContainers in interface AMNode

handle

public void handle(AMNodeEvent event)
Specified by:
handle in interface org.apache.hadoop.yarn.event.EventHandler<AMNodeEvent>

shouldBlacklistNode

protected boolean shouldBlacklistNode()

blacklistSelf

protected void blacklistSelf()

isUnhealthy

public boolean isUnhealthy()
Specified by:
isUnhealthy in interface AMNode

isBlacklisted

public boolean isBlacklisted()
Specified by:
isBlacklisted in interface AMNode

isUsable

public boolean isUsable()
Specified by:
isUsable in interface AMNode


Copyright © 2014 Apache Software Foundation. All rights reserved.