org.apache.hadoop.mapreduce.v2.app.rm
Class RMContainerRequestor

java.lang.Object
  extended by org.apache.hadoop.yarn.service.AbstractService
      extended by org.apache.hadoop.mapreduce.v2.app.rm.RMCommunicator
          extended by org.apache.hadoop.mapreduce.v2.app.rm.RMContainerRequestor
All Implemented Interfaces:
org.apache.hadoop.yarn.service.Service
Direct Known Subclasses:
RMContainerAllocator

public abstract class RMContainerRequestor
extends RMCommunicator

Keeps the data structures to send container requests to RM.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hadoop.yarn.service.Service
org.apache.hadoop.yarn.service.Service.STATE
 
Field Summary
 
Fields inherited from class org.apache.hadoop.mapreduce.v2.app.rm.RMCommunicator
allocatorThread, applicationACLs, applicationAttemptId, applicationId, eventHandler, isSignalled, scheduler
 
Constructor Summary
RMContainerRequestor(ClientService clientService, AppContext context)
           
 
Method Summary
protected  void addContainerReq(org.apache.hadoop.mapreduce.v2.app.rm.RMContainerRequestor.ContainerRequest req)
           
protected  void computeIgnoreBlacklisting()
           
protected  void containerFailedOnHost(String hostName)
           
protected  void decContainerReq(org.apache.hadoop.mapreduce.v2.app.rm.RMContainerRequestor.ContainerRequest req)
           
protected  org.apache.hadoop.yarn.api.records.Resource getAvailableResources()
           
protected  org.apache.hadoop.mapreduce.v2.app.rm.RMContainerRequestor.ContainerRequest getFilteredContainerRequest(org.apache.hadoop.mapreduce.v2.app.rm.RMContainerRequestor.ContainerRequest orig)
           
 void init(org.apache.hadoop.conf.Configuration conf)
           
protected  boolean isNodeBlacklisted(String hostname)
           
protected  org.apache.hadoop.yarn.api.records.AMResponse makeRemoteRequest()
           
protected  void release(org.apache.hadoop.yarn.api.records.ContainerId containerId)
           
 
Methods inherited from class org.apache.hadoop.mapreduce.v2.app.rm.RMCommunicator
createSchedulerProxy, getApplicationProgress, getContext, getJob, getMaxContainerCapability, getMinContainerCapability, heartbeat, register, setShouldUnregister, setSignalled, start, startAllocatorThread, stop, unregister
 
Methods inherited from class org.apache.hadoop.yarn.service.AbstractService
getConfig, getName, getServiceState, getStartTime, register, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RMContainerRequestor

public RMContainerRequestor(ClientService clientService,
                            AppContext context)
Method Detail

init

public void init(org.apache.hadoop.conf.Configuration conf)
Specified by:
init in interface org.apache.hadoop.yarn.service.Service
Overrides:
init in class RMCommunicator

makeRemoteRequest

protected org.apache.hadoop.yarn.api.records.AMResponse makeRemoteRequest()
                                                                   throws org.apache.hadoop.yarn.exceptions.YarnRemoteException
Throws:
org.apache.hadoop.yarn.exceptions.YarnRemoteException

computeIgnoreBlacklisting

protected void computeIgnoreBlacklisting()

containerFailedOnHost

protected void containerFailedOnHost(String hostName)

getAvailableResources

protected org.apache.hadoop.yarn.api.records.Resource getAvailableResources()

addContainerReq

protected void addContainerReq(org.apache.hadoop.mapreduce.v2.app.rm.RMContainerRequestor.ContainerRequest req)

decContainerReq

protected void decContainerReq(org.apache.hadoop.mapreduce.v2.app.rm.RMContainerRequestor.ContainerRequest req)

release

protected void release(org.apache.hadoop.yarn.api.records.ContainerId containerId)

isNodeBlacklisted

protected boolean isNodeBlacklisted(String hostname)

getFilteredContainerRequest

protected org.apache.hadoop.mapreduce.v2.app.rm.RMContainerRequestor.ContainerRequest getFilteredContainerRequest(org.apache.hadoop.mapreduce.v2.app.rm.RMContainerRequestor.ContainerRequest orig)


Copyright © 2012 Apache Software Foundation. All Rights Reserved.