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

java.lang.Object
  extended by org.apache.hadoop.service.AbstractService
      extended by org.apache.tez.dag.app.rm.node.AMNodeMap
All Implemented Interfaces:
Closeable, org.apache.hadoop.service.Service, org.apache.hadoop.yarn.event.EventHandler<AMNodeEvent>

public class AMNodeMap
extends org.apache.hadoop.service.AbstractService
implements org.apache.hadoop.yarn.event.EventHandler<AMNodeEvent>


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hadoop.service.Service
org.apache.hadoop.service.Service.STATE
 
Constructor Summary
AMNodeMap(org.apache.hadoop.yarn.event.EventHandler eventHandler, AppContext appContext)
           
 
Method Summary
protected  void computeIgnoreBlacklisting()
           
 AMNode get(org.apache.hadoop.yarn.api.records.NodeId nodeId)
           
 void handle(AMNodeEvent rEvent)
           
 boolean isBlacklistingIgnored()
           
 boolean isHostBlackListed(String hostname)
           
 void nodeSeen(org.apache.hadoop.yarn.api.records.NodeId nodeId)
           
 void serviceInit(org.apache.hadoop.conf.Configuration conf)
           
 int size()
           
 
Methods inherited from class org.apache.hadoop.service.AbstractService
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, serviceStart, serviceStop, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AMNodeMap

public AMNodeMap(org.apache.hadoop.yarn.event.EventHandler eventHandler,
                 AppContext appContext)
Method Detail

serviceInit

public void serviceInit(org.apache.hadoop.conf.Configuration conf)
Overrides:
serviceInit in class org.apache.hadoop.service.AbstractService

nodeSeen

public void nodeSeen(org.apache.hadoop.yarn.api.records.NodeId nodeId)

isHostBlackListed

public boolean isHostBlackListed(String hostname)

handle

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

computeIgnoreBlacklisting

protected void computeIgnoreBlacklisting()

get

public AMNode get(org.apache.hadoop.yarn.api.records.NodeId nodeId)

size

public int size()

isBlacklistingIgnored

@InterfaceAudience.Private
public boolean isBlacklistingIgnored()


Copyright © 2014 Apache Software Foundation. All rights reserved.