org.apache.tez.dag.app.rm.node
Class AMNodeImpl
java.lang.Object
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
|
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
eventHandler
protected org.apache.hadoop.yarn.event.EventHandler eventHandler
AMNodeImpl
public AMNodeImpl(org.apache.hadoop.yarn.api.records.NodeId nodeId,
int maxTaskFailuresPerNode,
org.apache.hadoop.yarn.event.EventHandler eventHandler,
boolean blacklistingEnabled,
AppContext appContext)
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.