org.apache.tez.dag.app.rm.container
Class AMContainerMap

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

public class AMContainerMap
extends org.apache.hadoop.service.AbstractService
implements org.apache.hadoop.yarn.event.EventHandler<AMContainerEvent>


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hadoop.service.Service
org.apache.hadoop.service.Service.STATE
 
Constructor Summary
AMContainerMap(ContainerHeartbeatHandler chh, TaskAttemptListener tal, ContainerSignatureMatcher containerSignatureMatcher, AppContext context)
           
 
Method Summary
 boolean addContainerIfNew(org.apache.hadoop.yarn.api.records.Container container)
           
 AMContainer get(org.apache.hadoop.yarn.api.records.ContainerId containerId)
           
 void handle(AMContainerEvent event)
           
 void serviceInit(org.apache.hadoop.conf.Configuration conf)
           
 Collection<AMContainer> values()
           
 
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

AMContainerMap

public AMContainerMap(ContainerHeartbeatHandler chh,
                      TaskAttemptListener tal,
                      ContainerSignatureMatcher containerSignatureMatcher,
                      AppContext context)
Method Detail

serviceInit

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

handle

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

addContainerIfNew

public boolean addContainerIfNew(org.apache.hadoop.yarn.api.records.Container container)

get

public AMContainer get(org.apache.hadoop.yarn.api.records.ContainerId containerId)

values

public Collection<AMContainer> values()


Copyright © 2014 Apache Software Foundation. All rights reserved.